SMAHA04340_진찰관리[채용건진].xrw 88 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMAHR00500.xrw
  4. * 설 명 : 종합건진 종합판정관리
  5. * 설 계 자 : 손주연
  6. * 작 성 자 : 손주연
  7. * 작 성 일 : 2007.10.01
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  12. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  13. <xhtml:head>
  14. <xhtml:title>종합판정관리</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <judgdetl>
  20. <rsltlst>
  21. <item>
  22. <testnm/>
  23. <rslt1/>
  24. <judgrsltcnts1/>
  25. <rslt2/>
  26. <judgrsltcnts2/>
  27. <rslt3/>
  28. <judgrsltcnts3/>
  29. <rsltunit/>
  30. <stndval/>
  31. <testcd/>
  32. <execprcpuniqno/>
  33. <prcpdd/>
  34. </item>
  35. <itemtext>
  36. <testnm/>
  37. <testcd/>
  38. <rslt1/>
  39. <rslt2/>
  40. <rslt3/>
  41. <execprcpuniqno/>
  42. <prcpdd/>
  43. </itemtext>
  44. <rslttextinfo>
  45. <rslt1/>
  46. <rslt2/>
  47. <rslt3/>
  48. <orddd1/>
  49. <orddd2/>
  50. <orddd3/>
  51. </rslttextinfo>
  52. <itemorddd>
  53. <orddd1/>
  54. <orddd2/>
  55. <orddd3/>
  56. <hopedd1/>
  57. <hopedd2/>
  58. <hopedd3/>
  59. </itemorddd>
  60. </rsltlst>
  61. <judginfo>
  62. <judg>
  63. <judg1>
  64. <judgflag/>
  65. <judgcntsa/>
  66. <judgcntsb/>
  67. </judg1>
  68. <judg2>
  69. <judgflag/>
  70. <judgcntsa/>
  71. <judgcntsb/>
  72. </judg2>
  73. <judgchest>
  74. <judgchestflag/>
  75. <judgchestflag2/>
  76. </judgchest>
  77. <judgdd/>
  78. <judgdrid/>
  79. </judg>
  80. <medinqr>
  81. <judginqrnm/>
  82. <judgrsltcnts/>
  83. <judgremcnts/>
  84. <judginqrflag/>
  85. <judginqrcd/>
  86. <judgrsltcd/>
  87. <answcdflag/>
  88. <stat/>
  89. <lrgrsltyn/>
  90. </medinqr>
  91. <judginqr>
  92. <judginqrnm/>
  93. <judgrsltcnts/>
  94. <judgremcnts/>
  95. <judginqrflag/>
  96. <judginqrcd/>
  97. <judgrsltcd/>
  98. <answcdflag/>
  99. <stat/>
  100. <lrgrsltyn/>
  101. </judginqr>
  102. <apntinqr>
  103. <judginqrnm/>
  104. <judgrsltcnts/>
  105. <judgremcnts/>
  106. <judginqrflag/>
  107. <judginqrcd/>
  108. <judgrsltcd/>
  109. <answcdflag/>
  110. <stat/>
  111. <lrgrsltyn/>
  112. </apntinqr>
  113. <answ>
  114. <judginqr/>
  115. <answcd/>
  116. <answcnts/>
  117. </answ>
  118. </judginfo>
  119. <medinfo>
  120. <item>
  121. <meddd/>
  122. <meddrid/>
  123. <medtm/>
  124. </item>
  125. <past>
  126. <medinqrnm/>
  127. <medrsltcnts/>
  128. <medremcnts/>
  129. <medinqrflag/>
  130. <medinqrcd/>
  131. <medrsltcd/>
  132. <answcdflag/>
  133. <stat/>
  134. </past>
  135. <body>
  136. <medinqrnm/>
  137. <medrsltcnts/>
  138. <medremcnts/>
  139. <medinqrflag/>
  140. <medinqrcd/>
  141. <medrsltcd/>
  142. <answcdflag/>
  143. <stat/>
  144. </body>
  145. <socl>
  146. <medinqrnm/>
  147. <medrsltcnts/>
  148. <medremcnts/>
  149. <medinqrflag/>
  150. <medinqrcd/>
  151. <medrsltcd/>
  152. <answcdflag/>
  153. <stat/>
  154. </socl>
  155. <famy>
  156. <medinqrnm/>
  157. <medrsltcnts/>
  158. <medremcnts/>
  159. <medinqrflag/>
  160. <medinqrcd/>
  161. <medrsltcd/>
  162. <answcdflag/>
  163. <stat/>
  164. </famy>
  165. </medinfo>
  166. </judgdetl>
  167. <judgpatlst>
  168. <item>
  169. <statflag/>
  170. <hopedd/>
  171. <hngnm/>
  172. <engnm/>
  173. <pid/>
  174. <visano/>
  175. <sex/>
  176. <age/>
  177. <pkgnm/>
  178. <pkgcd/>
  179. <acptremcnts/>
  180. <rsrvdd/>
  181. <rsrvno/>
  182. <cretno/>
  183. <brthareacnts/>
  184. <orddd/>
  185. <rsrvtm/>
  186. <rgstno1/>
  187. <rgstno2/>
  188. <healexamflag/>
  189. <healexamdetlflag/>
  190. <judgdd/>
  191. <judgdrid/>
  192. <judgdd2/>
  193. <judgdrid2/>
  194. <judgstat/>
  195. </item>
  196. </judgpatlst>
  197. <prntinfo>
  198. <prnt>
  199. <etc/>
  200. <phil/>
  201. <pat/>
  202. </prnt>
  203. </prntinfo>
  204. </main>
  205. <send>
  206. <srchhealexamflag/>
  207. <srchhealexamdetlflag/>
  208. <srchjudgdrid/>
  209. <srchfromdd/>
  210. <srchtodd/>
  211. <srchpid/>
  212. <srchorddd/>
  213. <srchpnm/>
  214. <srchrsrvdd/>
  215. <srchrsrvno/>
  216. <srchinstcd/>
  217. <srchstatflag/>
  218. <srchcretno/>
  219. <iemr/>
  220. <savedata>
  221. </savedata>
  222. <inqrflag/>
  223. </send>
  224. <init>
  225. <baseinfo>
  226. <choiflaglst/>
  227. <rslttypelst/>
  228. <plceflag/>
  229. <rsltcnstflaglst/>
  230. <pamcdlst>
  231. <uncocdlst/>
  232. <disccdlst/>
  233. </pamcdlst>
  234. <inqrflag/>
  235. <statlst/>
  236. <hedetlflaglst>
  237. <item/>
  238. </hedetlflaglst>
  239. <chedetlflaglst/>
  240. <ghedetlflaglst/>
  241. <meddrlst>
  242. <itemdr/>
  243. </meddrlst>
  244. <judgdrlst>
  245. <itemdr/>
  246. </judgdrlst>
  247. <fstjudglst/>
  248. <sendjudglst/>
  249. <chestjudglst/>
  250. <initaddrinfo/>
  251. <printinfolist/>
  252. </baseinfo>
  253. <send>
  254. <srchhealexamdetlflag/>
  255. <srchjudgdrid/>
  256. <srchfromdd/>
  257. <srchtodd/>
  258. <srchpid/>
  259. <srchpnm/>
  260. <srchhealexamdetlflag2/>
  261. <srchrsrvdd/>
  262. <srchstatflag>1</srchstatflag>
  263. <srchpid2/>
  264. <srchpnm2/>
  265. <srchsex/>
  266. <srchage/>
  267. <srchpkgnm/>
  268. <info/>
  269. <item2>
  270. <pid/>
  271. <hngnm/>
  272. <sex/>
  273. <age/>
  274. <pkgcd/>
  275. <pkgnm/>
  276. <hopedd/>
  277. <rsrvdd/>
  278. <rsrvno/>
  279. <healexamflag/>
  280. <healexamdetlflag/>
  281. <orddd/>
  282. <cretno/>
  283. <brthareacnts/>
  284. <medseq/>
  285. <meddd/>
  286. <meddrid/>
  287. <medtm/>
  288. <remedyn/>
  289. <execflag/>
  290. <histyn/>
  291. <remcnts/>
  292. </item2>
  293. </send>
  294. <drlst>
  295. <itemdr/>
  296. </drlst>
  297. </init>
  298. <hidden>
  299. <answlst>
  300. <item/>
  301. </answlst>
  302. <count/>
  303. </hidden>
  304. <temp>
  305. <okflag/>
  306. <histlst>
  307. <item>
  308. <histinfo/>
  309. <rsrvdd/>
  310. <rsrvno/>
  311. </item>
  312. </histlst>
  313. <judgdetl>
  314. <judginfo/>
  315. </judgdetl>
  316. <patinfo>
  317. <item/>
  318. </patinfo>
  319. </temp>
  320. </root>
  321. </instance>
  322. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  323. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  324. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  325. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  326. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  327. <script type="javascript" src="../../../ast/healthexamrsrvacptweb/js/AHA.js"/>
  328. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  329. <script type="javascript" src="../../../com/pacsweb/js/ZEP001.js"/>
  330. <script type="javascript" src="../../../ast/healthexambaseweb/js/healcombolist.js"/>
  331. <script type="javascript" ev:event="xforms-ready">
  332. <![CDATA[
  333. if( checkOpener() ){
  334. var sFlag = opener.javascript.getParameter("SMAHA04410_PARAM1");
  335. if(sFlag == "") {
  336. m_vHealexamflag = "G"
  337. m_vHealexamdetlflag = "G02"
  338. }else {
  339. m_vHealexamflag = sFlag.substr(0,1);
  340. m_vHealexamdetlflag = sFlag;
  341. }
  342. var sPid = opener.javascript.getParameter("SMAHA04410_PARAM2");
  343. if( sPid != "" ){
  344. btn_judg.selected = true;
  345. model.setValue( ipt_srchpid2.attribute("ref"), sPid);
  346. if( checkAuth("R") ) {
  347. //건진자 정보 조회
  348. fGetPatinfoWithPid(sPid);
  349. }
  350. }
  351. var sOrdDD = opener.javascript.getParameter("SMAHA04410_PARAM3");
  352. var sCretno = opener.javascript.getParameter("SMAHA04410_PARAM4");
  353. var sNd = cmb_srchrsrvdd.choices.itemset.attribute("nodeset") ;
  354. var nodelist = instance1.selectNodes(sNd);
  355. for(var i=0; i < nodelist.length; i++) {
  356. var desPid = nodelist.item(i).pid.text;
  357. var desOrd = nodelist.item(i).orddd.text;
  358. var desCretno = nodelist.item(i).cretno.text;
  359. if(desPid == sPid && desOrd == sOrdDD && desCretno == sCretno) {
  360. copyNodesetType("/root/init/send/info" , sNd + "[" + (i + 1) + "]" , "replace");
  361. model.setValue(cmb_srchrsrvdd.attribute("ref") ,nodelist.item(i).rsrvdd.text);
  362. fGetJudgDetlInfo( nodelist.item(i).rsrvdd.text
  363. , nodelist.item(i).rsrvno.text
  364. , nodelist.item(i).pkgnm.text
  365. , sPid, sOrdDD , sCretno );
  366. break;
  367. }
  368. }
  369. model.toggle("case_judg");
  370. model.toggle("case_prnt");
  371. btn_judgtab1.dispatch("onclick");
  372. }
  373. fGetBasicCdList();
  374. fSetJudgDr(); // 판정의 셋팅
  375. fSrchInit();
  376. addComboItem("cmb_meddr","--진찰의--","","above");
  377. addComboItem("cmb_judgdr","--판정의--","","above");
  378. cmb_meddr.select(0);
  379. btn_search.disabled = !checkAuth("R");
  380. btn_search2.disabled = !checkAuth("R");
  381. btn_clear.disabled = !checkAuth("X");
  382. model.toggle("case_hng");
  383. if( checkAuth("R") ) {
  384. fGetJudgPatList();
  385. }
  386. // 환자정보 삭제 common.js
  387. delPatientInfos();
  388. ]]>
  389. </script>
  390. <submission id="TRZBC00101"/>
  391. <submission id="TRAHA00001"/>
  392. <submission id="TRAHA00002"/>
  393. <submission id="TRAHA00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/baseinfo/pamcdlst"/>
  394. <submission id="TRAHA04016" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/histlst"/>
  395. <submission id="TRAHB00604" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/baseinfo/item"/>
  396. <submission id="TRAHA04011" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/patinfo"/>
  397. <submission id="TRAHA04411" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rsltpatlst"/>
  398. <submission id="TRAHA04412" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/init/send/info" replace="instance" resultref="/root/temp/judgdetl/judginfo"/>
  399. <submission id="TRAHA04421" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/init/send/info" replace="instance" resultref="/root/temp/judgdetl/judginfo"/>
  400. <submission id="TRAHA04413" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/init/send/info" replace="instance" resultref="/root/main/judgdetl/rsltlst"/>
  401. <submission id="TRAHA04414" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/init/send/info" replace="instance" resultref="/root/main/judgdetl/medinfo"/>
  402. <submission id="TRAHA04415" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/judgdetl/rsltlst" replace="instance"/>
  403. <submission id="TRAHA04416" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/inqrinfo"/>
  404. <submission id="TRAHA04418" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/init/send/info" resultref="/root/main/prntinfo/prnt"/>
  405. <submission id="TRAHA03174" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/signinfo"/>
  406. <submission id="TXAHA04411" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" replace="instance" resultref="/root/hidden/count"/>
  407. <submission id="TXAHA04412" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" replace="instance" resultref="/root/hidden/count"/>
  408. <submission id="TXAHA04415" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/init/send/info" replace="instance" resultref="/root/hidden/count"/>
  409. <submission id="TRAHA03133" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/drlst"/>
  410. <submission id="TXAHA04421" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" replace="instance" resultref="/root/temp/medinfo"/>
  411. </model>
  412. <script type="javascript">
  413. <![CDATA[
  414. var m_vHealexamflag = "";
  415. var m_vHealexamdetlflag = "";
  416. var m_vHealexamstatflag = "";
  417. var col_hngnm = grd_judgpatlst.colRef("hngnm");
  418. var col_engnm = grd_judgpatlst.colRef("engnm");
  419. var col_pid = grd_judgpatlst.colRef("pid");
  420. var col_sex = grd_judgpatlst.colRef("sex");
  421. var col_age = grd_judgpatlst.colRef("age");
  422. var col_stat = grd_judgpatlst.colRef("statflag");
  423. var col_ordtm = grd_judgpatlst.colRef("ordtm");
  424. var col_orddd = grd_judgpatlst.colRef("orddd");
  425. var col_pkgcd = grd_judgpatlst.colRef("pkgcd");
  426. var col_pkgnm = grd_judgpatlst.colRef("pkgnm");
  427. var col_cmpycd= grd_judgpatlst.colRef("cmpycd");
  428. var col_cmpynm= grd_judgpatlst.colRef("cmpynm");
  429. var col_hopedd = grd_judgpatlst.colRef("hopedd");
  430. var col_rsrvtm = grd_judgpatlst.colRef("rsrvtm");
  431. var col_judgdd = grd_judgpatlst.colRef("judgdd");
  432. var col_judgtm = grd_judgpatlst.colRef("judgtm");
  433. var col_judgdrid = grd_judgpatlst.colRef("judgdrid");
  434. var col_acptremcnts = grd_judgpatlst.colRef("acptremcnts");
  435. var col_rsrvdd = grd_judgpatlst.colRef("rsrvdd");
  436. var col_rsrvno = grd_judgpatlst.colRef("rsrvno");
  437. var col_cretno = grd_judgpatlst.colRef("cretno");
  438. var col_rgstno1 = grd_judgpatlst.colRef("rgstno1");
  439. var col_rgstno2 = grd_judgpatlst.colRef("rgstno2");
  440. /**===================================================================================
  441. *초기화
  442. * bDetl => true : 건진자별 상세내역만 초기화
  443. =====================================================================================*/
  444. function fInit(bDetl){
  445. model.removeNodeset(grd_rsltlst.nodeset);
  446. model.removeNodeset(grd_rslttextlst.nodeset);
  447. // model.removeNodeset(grd_medpast.nodeset);
  448. // model.removeNodeset(grd_medbody.nodeset);
  449. // model.removeNodeset(grd_medsocl.nodeset);
  450. // model.removeNodeset(grd_medfamy.nodeset);
  451. model.resetInstanceNode(grd_judginqrlst.nodeset);
  452. model.resetInstanceNode("/root/main/judgdetl/medinfo/item");
  453. model.resetInstanceNode("/root/main/judgdetl/judginfo/judg/judg1");
  454. model.resetInstanceNode("/root/main/judgdetl/judginfo/judg/judg2");
  455. model.resetInstanceNode("/root/main/judgdetl/judginfo/judg");
  456. model.resetInstanceNode("/root/main/judgdetl/rsltlst/rslttextinfo");
  457. model.resetInstanceNode("/root/main/judgdetl/rsltlst/itemorddd");
  458. model.resetInstanceNode("/root/init/send/info");
  459. model.resetInstanceNode("/root/temp/histlst/item");
  460. model.setValue("/root/init/send/srchhealexamdetlflag2" ,"");
  461. model.setValue("/root/init/send/srchrsrvdd" ,"");
  462. model.setValue("/root/init/send/srchpid2" ,"");
  463. model.setValue("/root/init/send/srchpnm2" ,"");
  464. model.setValue("/root/init/send/srchsex" ,"");
  465. model.setValue("/root/init/send/srchage" ,"");
  466. model.setValue("/root/init/send/srchpkgnm" ,"");
  467. var cur_date = getCurrentDate();
  468. model.makeValue(ipt_judgdd.attribute("ref") , cur_date);
  469. model.makeValue(ipt_meddd.attribute("ref") , cur_date);
  470. if( bDetl) {
  471. model.refresh();
  472. return false;
  473. }
  474. model.removeNodeset(grd_judgpatlst.nodeset);
  475. model.refresh();
  476. }
  477. /**===================================================================================
  478. ** 조회조건 초기화
  479. =====================================================================================*/
  480. function fSrchInit(){
  481. cmb_srchhealexamdetlflag.refresh();
  482. cmb_srchhealexamdetlflag.value = m_vHealexamdetlflag;
  483. cmb_srchhealexamdetlflag2.refresh();
  484. cmb_srchhealexamdetlflag2.value = m_vHealexamdetlflag;
  485. var cur_date = getCurrentDate();
  486. model.setValue(ipt_srchfromdd.attribute("ref") , cur_date);
  487. model.setValue(ipt_srchtodd.attribute("ref") , cur_date);
  488. }
  489. /**===================================================================================
  490. *기본코드 내역 가져오기
  491. =====================================================================================*/
  492. function fGetBasicCdList(){
  493. if(!checkOpener() ){
  494. model.toggle("case_pat");
  495. btn_patlst.selected= true;
  496. if( m_vHealexamflag == "" ) {
  497. var sFlag = getScreenMenuParameter();
  498. if(sFlag == "") {
  499. m_vHealexamflag = "G"
  500. m_vHealexamdetlflag = "G02"
  501. }else {
  502. m_vHealexamflag = sFlag.substr(0,1);
  503. m_vHealexamdetlflag = sFlag.substr(0,3);
  504. if (sFlag.length > 3) {
  505. m_vHealexamstatflag = sFlag.substr(3,1);
  506. }
  507. }
  508. }
  509. }
  510. openLoadingBar("기초정보 "); //처리중 화면을 오픈한다.
  511. zbcfGetCodeList( new Array("A0069","A0070", "A0066","A0110","A0106", "A0107", "A0123")
  512. , new Array( "/root/init/baseinfo/chedetlflaglst"
  513. ,"/root/init/baseinfo/ghedetlflaglst"
  514. , "/root/init/baseinfo/rslttypelst"
  515. , "/root/init/baseinfo/plceflag"
  516. , "/root/init/baseinfo/inqrflag"
  517. , "/root/init/baseinfo/statlst"
  518. , "/root/init/baseinfo/rsltcnstflaglst" ) );
  519. submit("TRZBC00101");
  520. healGetCodeList( new Array("V005","V006","V007","R001")
  521. , new Array("/root/init/baseinfo/fstjudglst"
  522. ,"/root/init/baseinfo/sendjudglst"
  523. ,"/root/init/baseinfo/chestjudglst"
  524. ,"/root/init/baseinfo/initaddrinfo") );
  525. healGetCodeListSubmit( new Array("R002")
  526. , new Array("/root/init/baseinfo/printinfolist"), false);
  527. model.removeNodeset("/root/init/baseinfo/fstjudglst/V005[1]");
  528. model.removeNodeset("/root/init/baseinfo/sendjudglst/V006[1]");
  529. model.removeNodeset("/root/init/baseinfo/chestjudglst/V007[1]");
  530. model.makeValue("/root/init/addrinfo/CF1", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'CF1']/cdnm"));
  531. model.makeValue("/root/init/addrinfo/CP1", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'CP1']/cdnm"));
  532. model.makeValue("/root/init/addrinfo/CP2", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'CP2']/cdnm"));
  533. model.makeValue("/root/init/addrinfo/E01", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'E01']/cdnm"));
  534. model.makeValue("/root/init/addrinfo/E02", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'E02']/cdnm"));
  535. model.makeValue("/root/init/addrinfo/E03", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'E03']/cdnm"));
  536. model.makeValue("/root/init/addrinfo/E04", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'E04']/cdnm"));
  537. model.makeValue("/root/init/addrinfo/K01", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'K01']/cdnm"));
  538. model.makeValue("/root/init/addrinfo/K02", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'K02']/cdnm"));
  539. model.makeValue("/root/init/addrinfo/K03", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'K03']/cdnm"));
  540. model.makeValue("/root/init/addrinfo/K04", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'K04']/cdnm"));
  541. model.makeValue("/root/init/addrinfo/PV1", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'PV1']/cdnm"));
  542. model.makeValue("/root/init/addrinfo/PV2", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'PV2']/cdnm"));
  543. model.makeValue("/root/init/addrinfo/VF1", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'VF1']/cdnm"));
  544. model.makeValue("/root/init/addrinfo/logoimg", getImageURL("cmc"));
  545. // 건진구분 조회
  546. if(m_vHealexamflag == "C") {
  547. copyNodesetType("/root/init/baseinfo/hedetlflaglst/item","/root/init/baseinfo/chedetlflaglst/A0069", "replace");
  548. }else {
  549. copyNodesetType("/root/init/baseinfo/hedetlflaglst/item","/root/init/baseinfo/ghedetlflaglst/A0070", "replace");
  550. }
  551. if (m_vHealexamstatflag != "" ) {
  552. if (m_vHealexamstatflag == "1") {
  553. model.setValue("/root/send/inqrflag","F");
  554. model.toggle("case_med");
  555. btn_med.dispatch("onclick");
  556. } else if (m_vHealexamstatflag == "2") {
  557. model.setValue("/root/send/inqrflag","G");
  558. model.toggle("case_prnt");
  559. btn_prnt.dispatch("onclick");
  560. }
  561. }
  562. //판정의조회
  563. model.setValue("/root/send/srchhealexamflag" , m_vHealexamflag);
  564. model.setValue("/root/send/srchhealexamdetlflag", m_vHealexamdetlflag);
  565. model.setValue("/root/init/send/srchstatflag", "1");
  566. model.makeValue("/root/send/srchdrflag" , "J" );
  567. submit("TRAHA03133");
  568. copyNodesetType("/root/init/baseinfo/judgdrlst/itemdr" , "/root/init/drlst/itemdr" , "replace");
  569. // 진찰의 조회
  570. model.setValue("/root/send/srchhealexamflag" , m_vHealexamflag);
  571. model.setValue("/root/send/srchhealexamdetlflag" , m_vHealexamdetlflag);
  572. model.makeValue("/root/send/srchdrflag" , "M" );
  573. submit("TRAHA03133");
  574. copyNodesetType("/root/init/baseinfo/meddrlst/itemdr" , "/root/init/drlst/itemdr" , "replace");
  575. closeLoadingBar() ;//처리중 화면을 close한다.
  576. }
  577. /**===================================================================================
  578. @desc : 판정입력대상자 가져오기
  579. @param : 건진구분/건진일자/환자id별 조회
  580. =====================================================================================*/
  581. function fGetJudgPatList(){
  582. openLoadingBar("판정 대상 건진자리스트") ;//처리중 화면을 오픈한다.
  583. model.removeNodeset(grd_judgpatlst.nodeset);
  584. //model.resetInstanceNode("/root/send");
  585. model.setValue("/root/send/srchhealexamdetlflag" , model.getValue("/root/init/send/srchhealexamdetlflag") );
  586. model.setValue("/root/send/srchpid" , model.getValue(ipt_pid.attribute("ref") ) );
  587. model.setValue("/root/send/srchpnm" , model.getValue(ipt_pnm.attribute("ref") ) );
  588. model.setValue("/root/send/srchfromdd" , model.getValue("/root/init/send/srchfromdd") );
  589. model.setValue("/root/send/srchtodd" , model.getValue("/root/init/send/srchtodd") );
  590. model.setValue("/root/send/srchjudgdrid" , model.getValue(cmb_srchjudgdrid.attribute("ref")));
  591. model.setValue("/root/send/srchstatflag" , model.getValue(cmb_statflag.attribute("ref")));
  592. model.setValue("/root/send/srchinstcd" , getUserInfo("dutplceinstcd") );
  593. model.setValue("/root/send/srchhealexamflag", m_vHealexamflag);
  594. submit("TRAHA04411");
  595. closeLoadingBar() ;//처리중 화면을 close한다.
  596. }
  597. /**===================================================================================
  598. @desc : 판정정보조회(판정대기자 선택시 종합판정입력tab이동)
  599. @param : healexamflag, pid, rsrvdd, rsrvno
  600. =====================================================================================*/
  601. function fGetJudgInfo(){
  602. var idx = grd_judgpatlst.row;
  603. if( idx < 1) return ;
  604. var vPid = grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("pid"));
  605. if( vPid == "" ) return ;
  606. //tab이동
  607. fInit(true);
  608. var vRsrvdd = grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("rsrvdd"));
  609. var vRsrvno = grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("rsrvno"));
  610. var vOrdDD = grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("orddd"));
  611. var vJudgStat = grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("judgstat"));
  612. var vHealexamFlag = grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("healexamflag"));
  613. var vHealexamDetlFlag = grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("healexamdetlflag"));
  614. var vCretno = grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("cretno"));
  615. var vSex = grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("sex"));
  616. var vAge = grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("age"));
  617. var vPkgnm = grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("pkgnm"));
  618. var vHopedd = grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("hopedd"));
  619. cmb_srchhealexamdetlflag2.value = vHealexamDetlFlag
  620. model.setValue(ipt_srchpid2.attribute("ref"), vPid );
  621. model.setValue(ipt_srchpnm2.attribute("ref"), grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("hngnm")));
  622. model.setValue(opt_sex.attribute("ref"), vSex);
  623. model.setValue(opt_age.attribute("ref"), vAge);
  624. model.setValue(opt_pkgnm.attribute("ref"), vPkgnm);
  625. model.setValue(cmb_srchrsrvdd.attribute("ref") , vRsrvdd);
  626. model.setValue("/root/send/inqrflag", "F");
  627. copyNodesetType("/root/init/send/info" , grd_judgpatlst.nodeset + "[" + idx + "]" , "replace");
  628. btn_judg.dispatch("onclick");
  629. btn_judg.refresh();
  630. // if(vJudgStat == "0") { // 판정대기
  631. // btn_judgtab1.dispatch("onclick");
  632. // }else if(vJudgStat == "1") { // 1차판정
  633. // btn_judgtab1.dispatch("onclick");
  634. // }else if(vJudgStat == "2") { // 2차판정
  635. // btn_judgtab2.dispatch("onclick");
  636. // }
  637. //해당환자의 건진history조회
  638. ahafGetHistList2(vPid, cmb_srchhealexamdetlflag.value , "E");
  639. //화면상단 환자정보 조회
  640. //ahafSetScreenTopPatInfo( vPid , vOrdDD , grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("cretno")) );
  641. model.refresh();
  642. // 결과 판정값 체크
  643. // fRsltJudgChk();
  644. //var nodeList = instance1.selectNodes("/root/temp/histlst/item[orddd='"+ vOrdDD + "' and pid='" + vPid + "' and cretno='"+ vCretno + "']" );
  645. var sNd = cmb_srchrsrvdd.choices.itemset.attribute("nodeset") ;
  646. var nodelist = instance1.selectNodes(sNd);
  647. for(var i=0; i < nodelist.length; i++) {
  648. var desPid = nodelist.item(i).pid.text;
  649. var desOrd = nodelist.item(i).orddd.text;
  650. var desCretno = nodelist.item(i).cretno.text;
  651. if(desPid == vPid && desOrd == vOrdDD && desCretno == vCretno) {
  652. cmb_srchrsrvdd.selected = true;
  653. fGetJudgDetlInfo( vRsrvdd, vRsrvno , vPkgnm, vPid, vOrdDD , vCretno );
  654. break;
  655. }
  656. }
  657. }
  658. /**===================================================================================
  659. @desc : 판정정보상세내역 조회
  660. @param : healexamflag, rsrvdd, rsrvno , instcd
  661. =====================================================================================*/
  662. function fGetJudgDetlInfo(vRsrvdd, vRsrvno , vPkgnm , vPid, vOrdDD , vCretno){
  663. grp_answ.visible = false;
  664. model.setValue("/root/send/srchhealexamflag" ,m_vHealexamflag );
  665. model.setValue("/root/send/srchhealexamdetlflag" ,model.getValue(cmb_srchhealexamdetlflag.attribute("ref")) );
  666. model.setValue("/root/init/send/srchhealexamdetlflag2" ,model.getValue("/root/init/send/info/healexamdetlflag") );
  667. model.setValue("/root/send/srchrsrvdd" ,vRsrvdd );
  668. model.setValue("/root/send/srchrsrvno" ,vRsrvno );
  669. model.setValue("/root/send/srchinstcd" ,getUserInfo("dutplceinstcd") );
  670. model.setValue("/root/send/srchpid" ,vPid );
  671. model.setValue("/root/send/srchorddd" ,vOrdDD );
  672. model.setValue("/root/send/srchcretno" ,vCretno );
  673. model.setValue("/root/init/send/srchpkgnm" ,vPkgnm);
  674. openLoadingBar("진찰 정보") ;//처리중 화면을 오픈한다.
  675. var ret = submit("TRAHA04413");
  676. // 결과 판정값 체크
  677. fRsltJudgChk();
  678. var vRsltCaption = "처방명칭" + "^" + cap_year1.value + "^" + "판정" + "^" + cap_year2.value + "^" + "판정" + "^" + cap_year3.value + "^" + "판정" + "^" + "단위" + "^" + "기준" ;
  679. grd_rsltlst.caption = vRsltCaption ;
  680. // 판정정보 조회
  681. fGetJudglst("A");
  682. // 진찰내역 조회
  683. fGetMedlst();
  684. closeLoadingBar() ;//처리중 화면을 close 한다.
  685. /*
  686. if( ret == true ){
  687. var retNode = model.instance1.selectSingleNode("/root/temp/judginfo/item/judgdrid");
  688. if( retNode != null ){
  689. model.copyNode("/root/main/judgdetl/judginfo","/root/temp/judginfo");
  690. }
  691. }
  692. // 판정의 체크
  693. var judgDr = model.getValue("/root/main/judgdetl/judginfo/item/judgdrid"); // 판정등록한 판정의
  694. var logJudgDr = model.getValue("/root/hidden/judgdr"); // 로그인 한 판정의
  695. if (judgDr == "") {
  696. // 등록한 판정의가 없을경우
  697. if(logJudgDr != "") {
  698. // 로그인 한 판정의가 있을 경우
  699. model.setValue("/root/main/judgdetl/judginfo/item/judgdrid" , logJudgDr);
  700. } else {
  701. model.setValue("/root/main/judgdetl/judginfo/item/judgdrid" , model.property("judgdr"));
  702. }
  703. } else {
  704. // 등록 된 판정의와 로그인 한 판정의가 다를 경우
  705. if(judgDr != logJudgDr) {
  706. if(logJudgDr != "") {
  707. // 로그인한 판정의가 존재할 경우
  708. var judgDrNm = "";
  709. var logJudgDrNm = ""
  710. // 이름 찾기
  711. for(var i=0; i < cmb_judgdr.length; i++) {
  712. if(cmb_judgdr.item(i).value == judgDr ) { judgDrNm = cmb_judgdr.item(i).label};
  713. if(cmb_judgdr.item(i).value == logJudgDr ) {logJudgDrNm = cmb_judgdr.item(i).label};
  714. }
  715. var vb = messageBox("판정의를 [" + judgDrNm + "]에서 [" + logJudgDrNm + "]로 변경" ,"S001");
  716. if(vb == "6") {
  717. // Yes
  718. model.setValue("/root/main/judgdetl/judginfo/item/judgdrid" , logJudgDr);
  719. }
  720. }
  721. }
  722. }
  723. */
  724. model.refresh();
  725. }
  726. /**===================================================================================
  727. @desc : 판정정보상세내역 조회
  728. =====================================================================================*/
  729. function fSetJugeInqr() {
  730. model.resetInstanceNode("/root/main/judgdetl/judginfo/judginqr");
  731. model.resetInstanceNode("/root/main/judgdetl/judginfo/apntinqr");
  732. model.resetInstanceNode("/root/main/judgdetl/judginfo/medinqr");
  733. model.resetInstanceNode("/root/main/judgdetl/judginfo/answ");
  734. // 판정
  735. copyNodesetType("/root/main/judgdetl/judginfo/judginqr" , "/root/temp/judgdetl/judginfo/judginqr" , "replace");
  736. // 문진
  737. copyNodesetType("/root/main/judgdetl/judginfo/apntinqr" , "/root/temp/judgdetl/judginfo/apntinqr" , "replace");
  738. // 진찰
  739. copyNodesetType("/root/main/judgdetl/judginfo/medinqr" , "/root/temp/judgdetl/judginfo/medinqr" , "replace");
  740. //판정문진 답변코드
  741. copyNodesetType("/root/main/judgdetl/judginfo/answ" , "/root/temp/judgdetl/judginfo/answ" , "replace");
  742. fSetJudgInqrStat();
  743. }
  744. /**===================================================================================
  745. @desc : 판정정보상세내역 조회
  746. =====================================================================================*/
  747. function fSetJudgInfo() {
  748. // 판정내역
  749. var judgstat = model.getValue("/root/temp/judgdetl/judginfo/judg/judgstat");
  750. var judgflag1 = model.getValue("/root/temp/judgdetl/judginfo/judg/judgflag1");
  751. var judgcnts1 = model.getValue("/root/temp/judgdetl/judginfo/judg/judgcnts1");
  752. var judgflag2 = model.getValue("/root/temp/judgdetl/judginfo/judg/judgflag2");
  753. var judgcnts2 = model.getValue("/root/temp/judgdetl/judginfo/judg/judgcnts2");
  754. var judgchestflag = model.getValue("/root/temp/judgdetl/judginfo/judg/judgchestflag");
  755. var judgchestflag2 = model.getValue("/root/temp/judgdetl/judginfo/judg/judgchestflag2");
  756. model.resetInstanceNode("/root/main/judgdetl/judginfo/judg/judg1");
  757. model.resetInstanceNode("/root/main/judgdetl/judginfo/judg/judg2");
  758. if(judgflag1 != "") {
  759. model.setValue("/root/main/judgdetl/judginfo/judg/judg1/judgflag" , judgflag1);
  760. if(judgflag1 == "A") {
  761. model.setValue("/root/main/judgdetl/judginfo/judg/judg1/judgcntsa" , judgcnts1);
  762. }else if(judgflag1 == "B") {
  763. model.setValue("/root/main/judgdetl/judginfo/judg/judg1/judgcntsb" , judgcnts1);
  764. }
  765. }
  766. if(judgflag2 != "") {
  767. model.setValue("/root/main/judgdetl/judginfo/judg/judg2/judgflag" , judgflag2);
  768. if(judgflag2 == "A") {
  769. model.setValue("/root/main/judgdetl/judginfo/judg/judg2/judgcntsa" , judgcnts2);
  770. }else if(judgflag2 == "B") {
  771. model.setValue("/root/main/judgdetl/judginfo/judg/judg2/judgcntsb" , judgcnts2);
  772. }
  773. }
  774. // 흉부촬영 판정 등록
  775. model.makeValue("/root/main/judgdetl/judginfo/judg/judgchest/judgchestflag" , judgchestflag );
  776. model.makeValue("/root/main/judgdetl/judginfo/judg/judgchest/judgchestflag2" , judgchestflag2 );
  777. if(judgstat == "0") { // 판정
  778. model.makeValue("/root/main/judgdetl/judginfo/judg/judgdd" , model.getValue("/root/temp/judgdetl/judginfo/judg/judgdd"));
  779. model.makeValue("/root/main/judgdetl/judginfo/judg/judgdrid" , model.getValue("/root/temp/judgdetl/judginfo/judg/judgdrid"));
  780. // btn_judgtab1.selected = true;
  781. // model.toggle("case_judg1");
  782. // btn_judg1.disabled = false;
  783. // btn_judg2.disabled = true;
  784. }else if(judgstat == "1") { // 1차 판정
  785. model.makeValue("/root/main/judgdetl/judginfo/judg/judgdd" , model.getValue("/root/temp/judgdetl/judginfo/judg/judgdd"));
  786. model.makeValue("/root/main/judgdetl/judginfo/judg/judgdrid" , model.getValue("/root/temp/judgdetl/judginfo/judg/judgdrid"));
  787. // btn_judgtab1.selected = true;
  788. // model.toggle("case_judg1");
  789. // btn_judg1.disabled = false;
  790. // btn_judg2.disabled = false;
  791. }else if(judgstat =="2") { // 2차판정
  792. model.setValue("/root/main/judgdetl/judginfo/judg/judgdd" , model.getValue("/root/temp/judgdetl/judginfo/judg/judgdd2"));
  793. model.setValue("/root/main/judgdetl/judginfo/judg/judgdrid" , model.getValue("/root/temp/judgdetl/judginfo/judg/judgdrid"));
  794. // btn_judgtab2.selected = true;
  795. // model.toggle("case_judg2");
  796. // btn_judg1.disabled = false;
  797. // btn_judg2.disabled = false;
  798. }
  799. }
  800. /**===================================================================================
  801. @desc : 판정내역 조회
  802. @param : 판정저장 : J 판정문진저장 : I 전체 : A
  803. =====================================================================================*/
  804. function fGetJudglst(vFlag) {
  805. if(submit("TRAHA04421")) {
  806. if(vFlag == "A" || vFlag == "I") {
  807. fSetJugeInqr();
  808. }
  809. if(vFlag == "A" || vFlag == "J") {
  810. fSetJudgInfo();
  811. }
  812. }
  813. // if(submit("TRAHA04412")) {
  814. // if(vFlag == "A" || vFlag == "I") {
  815. // fSetJugeInqr();
  816. // }
  817. // if(vFlag == "A" || vFlag == "J") {
  818. // fSetJudgInfo();
  819. // }
  820. // }
  821. }
  822. /**===================================================================================
  823. @desc : 진찰내역 조회
  824. =====================================================================================*/
  825. function fGetMedlst() {
  826. submit("TRAHA04414");
  827. var cnt = getNodesetCount("/root/main/judgdetl/medinfo/item");
  828. if (cnt == 0) {
  829. model.makeValue("/root/main/judgdetl/medinfo/item/meddd", getCurrentDate());
  830. model.makeValue("/root/main/judgdetl/medinfo/item/medtm", getCurrentTime().substring(0,4));
  831. model.makeValue("/root/main/judgdetl/medinfo/item/meddrid", "");
  832. model.makeValue("/root/main/judgdetl/medinfo/item/remedyn", "N");
  833. model.makeValue("/root/main/judgdetl/medinfo/item/execflag", "N");
  834. }
  835. }
  836. /**===================================================================================
  837. @desc : 판정문진의 답변코드 예문화면을 보이게 한다.
  838. =====================================================================================*/
  839. function fSetAnswVisible(vGrd) {
  840. var idx = vGrd.row;
  841. var judginqrcd = vGrd.valueMatrix(idx , vGrd.colRef("judginqrcd"));
  842. var judgrsltcnts = vGrd.valueMatrix(idx , vGrd.colRef("judgrsltcnts"));
  843. var answcdflag = vGrd.valueMatrix(idx , vGrd.colRef("answcdflag"));
  844. var inqrflag = model.getValue("/root/send/inqrflag");
  845. if(getNodesetCount("/root/main/judgdetl/judginfo/answ") < 1 ) {
  846. grp_answ.visible = false;
  847. return;
  848. }
  849. model.removeNodeset(grd_answlst.nodeset);
  850. var nodeList = instance1.selectNodes("/root/main/judgdetl/judginfo/answ[judginqrcd = '" + judginqrcd + "' and inqrflag = '" + inqrflag + "' ]");
  851. if(nodeList.length < 1) {
  852. grp_answ.visible = false;
  853. return;
  854. }
  855. var rCSV = getNodeListCSV(nodeList);
  856. setCSVToNode( "/root/hidden/answlst", rCSV ,"item");
  857. grd_answlst.refresh();
  858. if(answcdflag == "O" && nodeList.length > 0) {
  859. grp_answ.visible = true;
  860. } else {
  861. grp_answ.visible = false;
  862. }
  863. }
  864. /**=========================================================================================================================
  865. * 선택형 진찰문진 입력
  866. ===========================================================================================================================*/
  867. function fSetChoiAnsw(vGrd) {
  868. var idx = vGrd.row;
  869. var answcdflag = vGrd.valueMatrix( idx , vGrd.colRef("answcdflag") );
  870. var judginqrcd = vGrd.valueMatrix(idx , vGrd.colRef("judginqrcd"));
  871. var judgrsltcnts = vGrd.valueMatrix(idx , vGrd.colRef("judgrsltcnts"));
  872. if(answcdflag == "O") {
  873. for(var i=1; i<=grd_answlst.rows; i++) {
  874. var inqrcd = grd_answlst.valueMatrix( i , grd_answlst.colRef("judginqrcd"));
  875. var answcd = grd_answlst.valueMatrix( i , grd_answlst.colRef("answcd"));
  876. var answcnts = grd_answlst.valueMatrix( i , grd_answlst.colRef("answcnts"));
  877. if(inqrcd == judginqrcd && answcd == judgrsltcnts ) {
  878. vGrd.valueMatrix(idx , vGrd.colRef("judgrsltcd")) = answcd;
  879. vGrd.valueMatrix(idx , vGrd.colRef("judgrsltcnts")) = answcnts;
  880. grp_answ.visible = false ;
  881. break;
  882. }
  883. }
  884. }
  885. }
  886. /**=========================================================================================================================
  887. * 판정문진 입력상태 셋팅
  888. ===========================================================================================================================*/
  889. function fSetJudgInqrStat() {
  890. grd_judginqrlst.refresh();
  891. grd_judginqrlst.clearStatus();
  892. for(var i=1; i <= grd_judginqrlst.rows; i++ ) {
  893. var stat = grd_judginqrlst.valueMatrix(i , grd_judginqrlst.colRef("stat"));
  894. if(stat == "i") {
  895. grd_judginqrlst.rowStatus(i) = 1;
  896. }
  897. }
  898. grd_apntinqrlst.refresh();
  899. grd_apntinqrlst.clearStatus();
  900. for(var i=1; i <= grd_apntinqrlst.rows; i++ ) {
  901. var stat = grd_apntinqrlst.valueMatrix(i , grd_apntinqrlst.colRef("stat"));
  902. if(stat == "i") {
  903. grd_apntinqrlst.rowStatus(i) = 1;
  904. }
  905. }
  906. grd_medinqrlst.refresh();
  907. grd_medinqrlst.clearStatus();
  908. for(var i=1; i <= grd_medinqrlst.rows; i++ ) {
  909. var stat = grd_medinqrlst.valueMatrix(i , grd_medinqrlst.colRef("stat"));
  910. if(stat == "i") {
  911. grd_medinqrlst.rowStatus(i) = 1;
  912. }
  913. }
  914. }
  915. /**=========================================================================================================================
  916. * 판정문진의 입력서식을
  917. ===========================================================================================================================*/
  918. function fJudgInqrPrint() {
  919. var cnt = getNodesetCount("/root/main/judgdetl/rsltlst/item");
  920. var testcd = "";
  921. var testnm= "";
  922. var codenm= "";
  923. var rslt1 = "";
  924. var rsltformcd = "";
  925. rsltformcd = model.getValue("/root/init/send/info/rsltformcd");
  926. model.makeValue("/root/printinfo/printlist/item/pid", model.getValue("/root/init/send/info/pid"));
  927. model.makeValue("/root/printinfo/printlist/item/hngnm", model.getValue("/root/init/send/info/hngnm"));
  928. model.makeValue("/root/printinfo/printlist/item/rgstno1", model.getValue("/root/init/send/info/rgstno1"));
  929. model.makeValue("/root/printinfo/printlist/item/rgstno2", model.getValue("/root/init/send/info/rgstno2"));
  930. model.makeValue("/root/printinfo/printlist/item/sex", model.getValue("/root/init/send/info/sex"));
  931. model.makeValue("/root/printinfo/printlist/item/age", model.getValue("/root/init/send/info/age"));
  932. model.makeValue("/root/printinfo/printlist/item/hometel", model.getValue("/root/init/send/info/hometel"));
  933. model.makeValue("/root/printinfo/printlist/item/mpphontel", model.getValue("/root/init/send/info/mpphontel"));
  934. model.makeValue("/root/printinfo/printlist/item/pataddr", model.getValue("/root/init/send/info/pataddr"));
  935. model.makeValue("/root/printinfo/printlist/item/judgdrnm", cmb_judgdr.label);
  936. model.makeValue("/root/printinfo/printlist/item/judgdrengnm", model.getValue("/root/temp/judgdetl/judginfo/judg/judgdrengnm"));
  937. model.makeValue("/root/printinfo/printlist/item/licnsno", model.getValue("/root/temp/judgdetl/judginfo/judg/licnsno"));
  938. model.makeValue("/root/printinfo/printlist/item/orddd", model.getValue("/root/init/send/info/orddd"));
  939. model.makeValue("/root/printinfo/printlist/item/hopedd", model.getValue("/root/init/send/info/hopedd"));
  940. model.makeValue("/root/printinfo/printlist/item/judgdd", model.getValue("/root/main/judgdetl/judginfo/judg/judgdd"));
  941. model.makeValue("/root/printinfo/printlist/item/instnm", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid='K02']/cdnm")); // 의료기관명
  942. model.makeValue("/root/printinfo/printlist/item/enginstnm1", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid='E01']/cdnm")); // 의료센터(영문)
  943. model.makeValue("/root/printinfo/printlist/item/enginstnm2", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid='E02']/cdnm")); // 병원명(영문)
  944. model.makeValue("/root/printinfo/printlist/item/engaddr1", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid='E03']/cdnm")); // 주소1(영문)
  945. model.makeValue("/root/printinfo/printlist/item/engaddr2", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid='E04']/cdnm")); // 주소2(영문)
  946. model.makeValue("/root/printinfo/printlist/item/addr", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid='K04']/cdnm")); // 주소
  947. model.makeValue("/root/printinfo/printlist/item/tel", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid='PV3']/cdnm")); // 전화번호
  948. model.makeValue("/root/printinfo/printlist/item/fax", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid='VF2']/cdnm")); // FAX
  949. var prntCnt = getNodesetCount("/root/init/baseinfo/printinfolist/R002");
  950. // 검사 결과
  951. for(var i=1; i <= cnt; i++ ) {
  952. testcd = model.getValue("/root/main/judgdetl/rsltlst/item[" + i + "]/testcd");
  953. testnm = model.getValue("/root/main/judgdetl/rsltlst/item[" + i + "]/testnm");
  954. rslt1 = model.getValue("/root/main/judgdetl/rsltlst/item[" + i + "]/rslt1");
  955. rsltunit = model.getValue("/root/main/judgdetl/rsltlst/item[" + i + "]/rsltunit");
  956. var chngChk = true;
  957. for(var x=1; x <= prntCnt; x++ ) {
  958. var cmt = model.getValue("/root/init/baseinfo/printinfolist/R002[" + x + "]/cmt");
  959. var cdid = model.getValue("/root/init/baseinfo/printinfolist/R002[" + x + "]/cdid");
  960. if(cmt == testcd) {
  961. chngChk == false;
  962. model.makeValue("/root/printinfo/printlist/item/" + cdid, rslt1);
  963. model.makeValue("/root/printinfo/printlist/item/" + cdid + "nm", testnm);
  964. model.makeValue("/root/printinfo/printlist/item/" + cdid + "rsltunit", rsltunit);
  965. }
  966. }
  967. if(chngChk) {
  968. codenm = model.getValue("/root/init/baseinfo/printinfolist/R002[cdid='" + testcd + "']/cdnm");
  969. model.makeValue("/root/printinfo/printlist/item/" + testcd, rslt1);
  970. model.makeValue("/root/printinfo/printlist/item/" + testcd + "nm", testnm);
  971. model.makeValue("/root/printinfo/printlist/item/" + testcd + "rsltunit", rsltunit);
  972. }
  973. }
  974. // 진찰 문진
  975. cnt = getNodesetCount("/root/main/judgdetl/judginfo/medinqr");
  976. for(var j=1; j <= cnt; j++ ) {
  977. testcd = model.getValue("/root/main/judgdetl/judginfo/medinqr[" + j + "]/judginqrcd");
  978. rslt1 = model.getValue("/root/main/judgdetl/judginfo/medinqr[" + j + "]/judgrsltcnts");
  979. codenm = model.getValue("/root/init/baseinfo/printinfolist/R002[cdid='" + testcd + "']/cdnm");
  980. if (codenm != "") {
  981. model.makeValue("/root/printinfo/printlist/item/" + testcd, rslt1);
  982. }
  983. }
  984. // 사인 이미지 조회
  985. model.makeValue("/root/send/srchsignedid" , model.getValue("/root/main/judgdetl/judginfo/judg/judgdrid"));
  986. if(submit("TRAHA03174")) {
  987. model.makeNode("/root/printinfo/printlist/item/signdata");
  988. setImageRefInstance("/root/hidden/signinfo/img/singdata");
  989. setImageRefInstance("/root/printinfo/printlist/item/signdata");
  990. copyNodesetType("/root/printinfo/printlist/item/signdata" , "/root/hidden/signinfo/img/signdata" , "replace" );
  991. setImageRefInstance("/root/printinfo/printlist/item/signdata");
  992. }
  993. setParameter("reportprintyn", ""); //출력여부 확인하기
  994. if (rsltformcd != "") {
  995. exeReportPreview(rsltformcd, "XMLSTR", "/root/printinfo/printlist/item", "", "", "", "", "", "", "","", "", "", "", "", "", "", "printpaper=8;");
  996. if (getParameter("reportprintyn") == "Y"){ // 출력했으면..
  997. submit("TXAHA04415");
  998. }
  999. }
  1000. // setParameter("reportprintyn", ""); //출력여부 확인하기
  1001. // //판정내역
  1002. // var rsrvdd = model.getValue("/root/init/send/srchrsrvdd");
  1003. //
  1004. // if( rsrvdd == "") {
  1005. // messageBox("판정대상내역을 ", "C002");
  1006. // model.setFocus("cmb_srchrsrvdd");
  1007. // return ;
  1008. // }
  1009. //
  1010. // if(submit("TRAHA04418")) {
  1011. // var brthArea = model.getValue("/root/main/prntinfo/prnt/pat/brthareacnts");
  1012. //
  1013. // if(brthArea == "PP") { // 필리핀
  1014. // exeReportPreview("RPAHR04412", "XMLSTR", "", "", "", "", "", "", "", "","", "", "", "", "", "", "", "printpaper=8;");
  1015. // }else if(brthArea == "ETC"){ // 기타해외
  1016. // exeReportPreview("RPAHR04411", "XMLSTR", "", "", "", "", "", "", "", "","", "", "", "", "", "", "", "printpaper=8;");
  1017. // }
  1018. //
  1019. // if (getParameter("reportprintyn") == "Y"){ // 출력했으면..
  1020. // submit("TXAHA04415");
  1021. // }
  1022. // }
  1023. }
  1024. /********************************************************************************************************************************************************************/
  1025. /**===================================================================================
  1026. @desc : 종합판정입력
  1027. @param : 판정내역 및 질환코드내역
  1028. =====================================================================================*/
  1029. function fSaveJudgInqr(){
  1030. //판정내역
  1031. var rsrvdd = model.getValue("/root/init/send/srchrsrvdd");
  1032. if( rsrvdd == "") {
  1033. messageBox("판정대상내역을 ", "C002");
  1034. model.setFocus("cmb_srchrsrvdd");
  1035. return ;
  1036. }
  1037. if( messageBox("판정문진내역을 ", "Q002") !=6) return ;
  1038. copyNodesetType("/root/send/savedata","/root/init/send/info", "replace");
  1039. model.makeValue("/root/send/savedata/judginqr" , grd_judginqrlst.getUpdateData());
  1040. if(submit("TXAHA04411")) {
  1041. fGetJudglst("I");
  1042. }
  1043. }
  1044. /*=====================================================================================
  1045. @desc : 환자번호로 건진자 정보 가져오기...
  1046. =====================================================================================*/
  1047. function fGetPatinfoWithPid(sPid ) {
  1048. if( sPid == "" ) return ;
  1049. if(cmb_srchhealexamdetlflag2.value == "") {
  1050. cmb_srchhealexamdetlflag2.value = m_vHealexamdetlflag;
  1051. }
  1052. if( ahafGetPatInfo(2, sPid, "" , "/root/init/send/item2" ) == true ) {
  1053. model.setValue(ipt_srchpid2.attribute("ref") ,sPid);
  1054. model.setValue(ipt_srchpnm2.attribute("ref") ,model.getValue("/root/temp/patinfo/item/hngnm"));
  1055. model.setValue(opt_sex.attribute("ref") ,model.getValue("/root/temp/patinfo/item/sex"));
  1056. model.setValue(opt_age.attribute("ref") ,model.getValue("/root/temp/patinfo/item/age"));
  1057. //해당환자의 건진history조회
  1058. ahafGetHistList2(sPid, cmb_srchhealexamdetlflag2.value , "E");
  1059. }
  1060. }
  1061. /*=====================================================================================
  1062. @desc : 로그인 된 사람이 판정의 경우 등록
  1063. =====================================================================================*/
  1064. function fSetJudgDr() {
  1065. var licnsno = getUserInfo("licnsno");
  1066. var selChk = false;
  1067. for(var i=0; i < cmb_srchjudgdrid.length; i++) {
  1068. // 판정의 의사번호가 있을 경우 선택
  1069. if(cmb_srchjudgdrid.item(i).value == licnsno) {
  1070. cmb_srchjudgdrid.select(i);
  1071. model.makeValue("/root/hidden/judgdr" , licnsno);
  1072. selChk = true;
  1073. }
  1074. }
  1075. //선택된 것이 없으면 default
  1076. if(selChk == false) {
  1077. cmb_srchjudgdrid.select(0);
  1078. }
  1079. }
  1080. /**==================================================================================================================
  1081. @author : 손범성
  1082. @version :2007-12-17
  1083. @desc : 결과 판정을 체크한다.
  1084. @param :
  1085. ====================================================================================================================*/
  1086. function fRsltJudgChk() {
  1087. for(var i=1; i <= grd_rsltlst.rows; i++ ) {
  1088. var judgrsltcnts1 = grd_rsltlst.valueMatrix( i , grd_rsltlst.colRef("judgrsltcnts1") );
  1089. var judgrsltcnts2 = grd_rsltlst.valueMatrix( i , grd_rsltlst.colRef("judgrsltcnts2") );
  1090. var judgrsltcnts3 = grd_rsltlst.valueMatrix( i , grd_rsltlst.colRef("judgrsltcnts3") );
  1091. // 첫번째 건진 판정
  1092. if(judgrsltcnts1 != "") {
  1093. if(judgrsltcnts1 == "H") grd_rsltlst.cellStyle("background-color" , i , grd_rsltlst.colRef("judgrsltcnts1") , i , grd_rsltlst.colRef("judgrsltcnts1")) = "#ff7a85";
  1094. if(judgrsltcnts1 == "L") grd_rsltlst.cellStyle("background-color" , i , grd_rsltlst.colRef("judgrsltcnts1") , i , grd_rsltlst.colRef("judgrsltcnts1")) = "#99ccff";
  1095. grd_rsltlst.cellStyle("background-position" , i , grd_rsltlst.colRef("judgrsltcnts1") , i , grd_rsltlst.colRef("judgrsltcnts1")) = "center";
  1096. }
  1097. // 두번째 건진 판정
  1098. if(judgrsltcnts2 != "") {
  1099. if(judgrsltcnts2 == "H") grd_rsltlst.cellStyle("background-color" , i , grd_rsltlst.colRef("judgrsltcnts2") , i , grd_rsltlst.colRef("judgrsltcnts2")) = "#ff7a85";
  1100. if(judgrsltcnts2 == "L") grd_rsltlst.cellStyle("background-color" , i , grd_rsltlst.colRef("judgrsltcnts2") , i , grd_rsltlst.colRef("judgrsltcnts2")) = "#99ccff";
  1101. grd_rsltlst.cellStyle("background-position" , i , grd_rsltlst.colRef("judgrsltcnts2") , i , grd_rsltlst.colRef("judgrsltcnts2")) = "center";
  1102. }
  1103. // 세번째 건진 판정
  1104. if(judgrsltcnts3 != "") {
  1105. if(judgrsltcnts3 == "H") grd_rsltlst.cellStyle("background-color" , i , grd_rsltlst.colRef("judgrsltcnts3") , i , grd_rsltlst.colRef("judgrsltcnts3")) = "#ff7a85";
  1106. if(judgrsltcnts3 == "L") grd_rsltlst.cellStyle("background-color" , i , grd_rsltlst.colRef("judgrsltcnts3") , i , grd_rsltlst.colRef("judgrsltcnts3")) = "#99ccff";
  1107. grd_rsltlst.cellStyle("background-position" , i , grd_rsltlst.colRef("judgrsltcnts3") , i , grd_rsltlst.colRef("judgrsltcnts3")) = "center";
  1108. }
  1109. }
  1110. for ( var i = 1; i <= grd_rslttextlst.rows; i++ ) {
  1111. grd_rslttextlst.rowstyle( i , "data" , "background-color" ) = "#FFFFFF";
  1112. grd_rslttextlst.rowstyle( i , "data" , "color" ) = "#000000";
  1113. var olddd = grd_rslttextlst.valueMatrix(i, grd_rslttextlst.colRef("rsrvdd")).substring(0,4);
  1114. var nowdd = cmb_srchrsrvdd.value.substring(0,4);
  1115. if ( olddd == nowdd ) {
  1116. grd_rslttextlst.rowstyle( i , "data" , "background-color" ) = "#CCFFCC";
  1117. }
  1118. }
  1119. }
  1120. /**==================================================================================================================
  1121. @author : 손범성
  1122. @version :2008-07-04
  1123. @desc : 결과 판정을 체크한다.
  1124. @param :
  1125. ====================================================================================================================*/
  1126. function fSetColRsltText(vRow) {
  1127. if( vRow < 1 ) return ;
  1128. var nodeList = instance1.selectNodes(grd_rslttextlst.attribute("nodeset") );
  1129. if( nodeList == null ) return ;
  1130. if( nodeList.length < 1 ) return ;
  1131. model.makeNode(tar_rsltcnts1.attribute("ref"));
  1132. model.makeNode(tar_rsltcnts2.attribute("ref"));
  1133. model.makeNode(tar_rsltcnts3.attribute("ref"));
  1134. model.setValue(tar_rsltcnts1.attribute("ref"), nodeList.item( vRow - 1 ).rslt1.text );
  1135. model.setValue(tar_rsltcnts2.attribute("ref"), nodeList.item( vRow - 1 ).rslt2.text );
  1136. model.setValue(tar_rsltcnts3.attribute("ref"), nodeList.item( vRow - 1 ).rslt3.text );
  1137. model.refresh();
  1138. }
  1139. ]]>
  1140. </script>
  1141. </xhtml:head>
  1142. <xhtml:body guideline="1,1196;2,757;2,939;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  1143. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  1144. <caption id="caption19" class="tit_1" style="left:0px; top:0px; width:75px; height:14px; ">진찰</caption>
  1145. </group>
  1146. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  1147. <switch id="switch1" style="left:3px; top:25px; width:1190px; height:713px; border-color:#c7a3cf; border-style:solid; ">
  1148. <case id="case_pat">
  1149. <line id="line6" class="line_1" style="x1:5px; y1:105px; x2:1182px; y2:105px; "/>
  1150. <group id="group2" style="left:5px; top:9px; width:1179px; height:66px; vertical-align:top; ">
  1151. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1178px; height:65px; background-color:#fffbf2; border-color:#ffd799; "/>
  1152. <caption id="caption13" class="search_name" style="left:230px; top:10px; width:86px; height:17px; ">건진일자 :</caption>
  1153. <caption id="caption14" class="search_name" style="left:11px; top:10px; width:89px; height:17px; ">건진종류 :</caption>
  1154. <button id="btn_search" class="btn1_letter2" style="left:1113px; top:10px; width:56px; height:22px; ">
  1155. <caption>조회</caption>
  1156. <script type="javascript" ev:event="DOMActivate">
  1157. <![CDATA[
  1158. fGetJudgPatList();
  1159. ]]>
  1160. </script>
  1161. </button>
  1162. <line id="line16" style="x1:1101px; y1:10px; x2:1101px; y2:59px; border-color:#ffe4bb; border-left-style:solid; "/>
  1163. <select1 id="cmb_srchhealexamdetlflag" ref="/root/init/send/srchhealexamdetlflag" class="combo_s_essential" disabled="true" appearance="minimal" style="left:101px; top:10px; width:105px; height:19px; ">
  1164. <choices>
  1165. <itemset nodeset="/root/init/baseinfo/hedetlflaglst/item">
  1166. <label ref="cdnm"/>
  1167. <value ref="cdid"/>
  1168. </itemset>
  1169. </choices>
  1170. </select1>
  1171. <input id="ipt_srchfromdd" ref="/root/init/send/srchfromdd" class="input_s_essential" inputtype="date" style="left:319px; top:10px; width:100px; height:19px; "/>
  1172. <input id="ipt_srchtodd" ref="/root/init/send/srchtodd" class="input_s_essential" inputtype="date" style="left:439px; top:10px; width:100px; height:19px; ">
  1173. <script type="javascript" ev:event="xforms-value-changed">
  1174. <![CDATA[
  1175. fGetJudgPatList();
  1176. ]]>
  1177. </script>
  1178. </input>
  1179. <select1 id="cmb_srchjudgdrid" ref="/root/init/send/srchjudgdrid" class="combo_s_essential" visibility="hidden" appearance="minimal" style="left:91px; top:36px; width:105px; height:19px; ">
  1180. <choices>
  1181. <itemset nodeset="/root/init/baseinfo/drlst/itemdr">
  1182. <label ref="drnm"/>
  1183. <value ref="drid"/>
  1184. </itemset>
  1185. </choices>
  1186. <script type="javascript" ev:event="xforms-value-changed">
  1187. <![CDATA[
  1188. fGetJudgPatList();
  1189. ]]>
  1190. </script>
  1191. </select1>
  1192. <caption id="caption1" class="search_name" visibility="hidden" style="left:11px; top:35px; width:89px; height:17px; ">판정의 :</caption>
  1193. <input id="ipt_pnm" ref="/root/init/send/srchpnm" class="input_default" style="left:781px; top:10px; width:105px; height:19px; "/>
  1194. <input id="ipt_pid" ref="/root/init/send/srchpid" class="input_default" style="left:650px; top:10px; width:105px; height:19px; ">
  1195. <script type="javascript" ev:event="onkeyup">
  1196. <![CDATA[
  1197. if( event.keyCode != 13) return ;
  1198. if( !ahafGetPatInfo(2, ipt_pid.currentText , "" , "/root/init/send/item1" ) ) return ;
  1199. model.setValue("/root/init/send/item1/pid", model.getValue("/root/temp/patinfo/item/pid"));
  1200. model.setValue("/root/init/send/item1/hngnm", model.getValue("/root/temp/patinfo/item/hngnm") );
  1201. model.refresh();
  1202. if( model.getValue("/root/init/send/item1/pid") == "" ) return ;
  1203. fGetJudgPatList();
  1204. ]]>
  1205. </script>
  1206. </input>
  1207. <caption id="caption3" class="search_name" style="left:560px; top:10px; width:89px; height:17px; ">등록번호 :</caption>
  1208. <caption id="caption18" class="search_no_b" style="left:424px; top:11px; width:12px; height:17px; ">~</caption>
  1209. <button id="btn_srchpat" class="icon_search" style="left:759px; top:10px; width:16px; height:16px; ">
  1210. <caption/>
  1211. <script type="javascript" ev:event="DOMActivate">
  1212. <![CDATA[
  1213. fSearchPatInfo("SMAHA00100", "pnm", ipt_pnm.currentText , "N", "/root/send" ,ipt_pid.attribute("ref"), ipt_pnm.attribute("ref") );
  1214. if( model.getValue(ipt_pid.attribute("ref")) != "" ) fGetJudgPatList();
  1215. ]]>
  1216. </script>
  1217. </button>
  1218. <select1 id="cmb_statflag" ref="/root/init/send/srchstatflag" class="combo_s_essential" appearance="minimal" style="left:990px; top:10px; width:105px; height:19px; ">
  1219. <choices>
  1220. <item>
  1221. <label>판정대기</label>
  1222. <value>1</value>
  1223. </item>
  1224. <item>
  1225. <label>판정완료</label>
  1226. <value>2</value>
  1227. </item>
  1228. </choices>
  1229. <script type="javascript" ev:event="xforms-value-changed">
  1230. <![CDATA[
  1231. fGetJudgPatList();
  1232. ]]>
  1233. </script>
  1234. </select1>
  1235. </group>
  1236. <caption id="caption5" class="tit_2" style="left:5px; top:85px; width:151px; height:13px; ">대기자리스트</caption>
  1237. <caption id="caption31" class="search_name" style="left:905px; top:20px; width:97px; height:17px; ">상태구분 :</caption>
  1238. <datagrid id="grd_judgpatlst" nodeset="/root/main/judgpatlst/item" caption="상태^신검일자^한글이름^영문이름^등록번호^비자연번^성별^나이^패키지명^패키지코드^비고^rsrvdd^rsrvno^cretno^brthareacnts^orddd^rsrvtm^rrgstno1^rrgstno2^healexamflag^healexamdetlflag^judgdd^judgdrid^judgdd2^judgdrid2^judgstat" colsep="^" colwidth="100, 100, 100, 100, 100, 100, 50, 50, 200, 100, 250, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:110px; width:1177px; height:596px; ">
  1239. <col disabled="true" ref="statflag" type="combo">
  1240. <choices>
  1241. <itemset nodeset="/root/init/baseinfo/statlst/A0107">
  1242. <label ref="cdnm"/>
  1243. <value ref="cdid"/>
  1244. </itemset>
  1245. </choices>
  1246. </col>
  1247. <col ref="hopedd" format="yyyy-mm-dd"/>
  1248. <col ref="hngnm"/>
  1249. <col ref="engnm" visibility="hidden"/>
  1250. <col ref="pid"/>
  1251. <col ref="visano" visibility="hidden"/>
  1252. <col ref="sex"/>
  1253. <col ref="age"/>
  1254. <col ref="pkgnm"/>
  1255. <col ref="pkgcd" visibility="hidden"/>
  1256. <col ref="acptremcnts" type="input"/>
  1257. <col ref="rsrvdd" visibility="hidden"/>
  1258. <col ref="rsrvno" visibility="hidden"/>
  1259. <col ref="cretno" visibility="hidden"/>
  1260. <col ref="brthareacnts" visibility="hidden"/>
  1261. <col ref="orddd" visibility="hidden"/>
  1262. <col ref="rsrvtm" visibility="hidden"/>
  1263. <col ref="rgstno1" visibility="hidden"/>
  1264. <col ref="rgstno2" visibility="hidden" style="left:1870px; top:23px; width:100px; height:23px; "/>
  1265. <col ref="healexamflag" visibility="hidden"/>
  1266. <col ref="healexamdetlflag" visibility="hidden"/>
  1267. <col ref="judgdd" visibility="hidden"/>
  1268. <col ref="judgdrid" visibility="hidden"/>
  1269. <col ref="judgdd2" visibility="hidden"/>
  1270. <col ref="judgdrid2" visibility="hidden"/>
  1271. <col ref="judgstat" visibility="hidden"/>
  1272. <script type="javascript" ev:event="ondblclick">
  1273. <![CDATA[
  1274. fGetJudgInfo();
  1275. ]]>
  1276. </script>
  1277. </datagrid>
  1278. </case>
  1279. <case id="case_judg" selected="true">
  1280. <datagrid id="grd_rsltlst" nodeset="/root/main/judgdetl/rsltlst/item" caption="처방명칭^2007^판정^2006^판정^2005^판정^단위^기준^testcd^execprcpuniqno^prcpdd" colsep="^" colwidth="99, 62, 30, 59, 30, 56, 30, 53, 87, 50 , 50 , 50" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:5px; top:142px; width:540px; height:373px; ">
  1281. <col ref="testnm"/>
  1282. <col ref="rslt1"/>
  1283. <col ref="judgrsltcnts1" style="text-align:center; "/>
  1284. <col ref="rslt2"/>
  1285. <col ref="judgrsltcnts2" style="text-align:center; "/>
  1286. <col ref="rslt3"/>
  1287. <col ref="judgrsltcnts3" style="text-align:center; "/>
  1288. <col ref="rsltunit"/>
  1289. <col ref="stndval"/>
  1290. <col ref="testcd" visibility="hidden"/>
  1291. <col ref="execprcpuniqno" visibility="hidden"/>
  1292. <col ref="prcpdd" visibility="hidden"/>
  1293. <script type="javascript" ev:event="onclick">
  1294. <![CDATA[
  1295. model.makeValue("/root/temp/seqno", model.getValue("/root/main/judgdetl/rsltlst/item["+grd_rsltlst.row+"]/execprcpuniqno"));
  1296. model.makeValue("/root/temp/prcpdd",model.getValue("/root/main/judgdetl/rsltlst/item["+grd_rsltlst.row+"]/prcpdd"));
  1297. ]]>
  1298. </script>
  1299. </datagrid>
  1300. <datagrid id="grd_rslttextlst" nodeset="/root/main/judgdetl/rsltlst/itemtext" caption="처방명칭^testcd^caption1^caption2^execprcpuniqno^prcpdd^rsrvdd" colsep="^" colwidth="197, 100, 100, 100, 50, 50, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:522px; width:233px; height:183px; ">
  1301. <col ref="testnm"/>
  1302. <col ref="testcd" visibility="hidden"/>
  1303. <col ref="judgrslt" visibility="hidden"/>
  1304. <col ref="rslt1" visibility="hidden"/>
  1305. <col ref="execprcpuniqno" visibility="hidden"/>
  1306. <col ref="prcpdd" visibility="hidden"/>
  1307. <col ref="rsrvdd" visibility="hidden"/>
  1308. <script type="javascript" ev:event="onclick">
  1309. <![CDATA[
  1310. fSetColRsltText(grd_rslttextlst.row);
  1311. model.makeValue("/root/temp/seqno", model.getValue("/root/main/judgdetl/rsltlst/itemtext["+grd_rslttextlst.row+"]/execprcpuniqno"));
  1312. model.makeValue("/root/temp/prcpdd",model.getValue("/root/main/judgdetl/rsltlst/itemtext["+grd_rslttextlst.row+"]/prcpdd"));
  1313. ]]>
  1314. </script>
  1315. <script type="javascript" ev:event="onkeydown">
  1316. <![CDATA[
  1317. var idx = grd_rslttextlst.row;
  1318. if(event.keyCode == 38 && idx > 0) {
  1319. fSetColRsltText( idx - 1 );
  1320. }else if(event.keyCode == 40 && idx < grd_rslttextlst.rows -1) {
  1321. fSetColRsltText( idx + 1 );
  1322. }
  1323. ]]>
  1324. </script>
  1325. </datagrid>
  1326. <group id="group5" style="left:240px; top:522px; width:306px; height:183px; vertical-align:top; ">
  1327. <caption id="cap_year1" ref="/root/main/judgdetl/rsltlst/itemorddd/hopedd1" class="cell_1" format="yyyy" roundmode="round" style="left:-2px; top:1px; width:35px; height:60px; vertical-align:middle; cursor:hand; ">
  1328. <![CDATA[2006]]>
  1329. <script type="javascript" ev:event="ondblclick">
  1330. <![CDATA[
  1331. fSetLargView(tar_rsltcnts1.value, cap_year1.value);
  1332. ]]>
  1333. </script>
  1334. </caption>
  1335. <caption id="cap_year2" ref="/root/main/judgdetl/rsltlst/itemorddd/hopedd2" class="cell_1" format="yyyy" style="left:-2px; top:62px; width:35px; height:60px; vertical-align:middle; cursor:hand; ">
  1336. <![CDATA[2005]]>
  1337. <script type="javascript" ev:event="ondblclick">
  1338. <![CDATA[
  1339. fSetLargView(tar_rsltcnts2.value, cap_year2.value);
  1340. ]]>
  1341. </script>
  1342. </caption>
  1343. <caption id="cap_year3" ref="/root/main/judgdetl/rsltlst/itemorddd/hopedd3" class="cell_1" format="yyyy" style="left:-2px; top:123px; width:35px; height:60px; vertical-align:middle; cursor:hand; ">
  1344. <![CDATA[2004]]>
  1345. <script type="javascript" ev:event="ondblclick">
  1346. <![CDATA[
  1347. fSetLargView(tar_rsltcnts3.value, cap_year3.value);
  1348. ]]>
  1349. </script>
  1350. </caption>
  1351. <textarea id="tar_rsltcnts1" ref="/root/main/judgdetl/rsltlst/rslttextinfo/rslt1" scroll="vertical" editable="false" style="left:36px; top:2px; width:268px; height:56px; "/>
  1352. <textarea id="tar_rsltcnts3" ref="/root/main/judgdetl/rsltlst/rslttextinfo/rslt3" scroll="vertical" editable="false" style="left:36px; top:125px; width:268px; height:56px; "/>
  1353. <textarea id="tar_rsltcnts2" ref="/root/main/judgdetl/rsltlst/rslttextinfo/rslt2" scroll="vertical" editable="false" style="left:36px; top:64px; width:268px; height:56px; "/>
  1354. <line id="line4" class="line_2" style="x1:-2px; y1:-1px; x2:292px; y2:-1px; "/>
  1355. <line id="line5" class="line_2" style="x1:30px; y1:121px; x2:304px; y2:121px; "/>
  1356. <line id="line7" class="line_2" style="x1:30px; y1:60px; x2:304px; y2:60px; "/>
  1357. </group>
  1358. <line id="line9" class="line_1" style="x1:5px; y1:517px; x2:546px; y2:517px; "/>
  1359. <line id="line11" class="line_3" style="x1:5px; y1:706px; x2:536px; y2:706px; "/>
  1360. <caption id="caption4" class="tit_2" style="left:5px; top:95px; width:100px; height:14px; ">진찰</caption>
  1361. <caption id="caption23" class="cell_1" style="left:5px; top:117px; width:60px; height:23px; vertical-align:middle; ">패키지명</caption>
  1362. <output id="opt_pkgnm" ref="/root/init/send/srchpkgnm" class="output_fix" appearance="output" style="left:67px; top:118px; width:478px; height:19px; "/>
  1363. <line id="line8" class="line_3" style="x1:5px; y1:139px; x2:546px; y2:139px; "/>
  1364. <group id="group1" style="left:5px; top:5px; width:541px; height:85px; vertical-align:top; ">
  1365. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:540px; height:84px; background-color:#fffbf2; border-color:#ffd799; "/>
  1366. <caption id="caption22" class="search_name" style="left:11px; top:8px; width:89px; height:17px; ">건진종류 :</caption>
  1367. <button id="btn_searchhist" class="btn1_letter2" style="left:460px; top:30px; width:56px; height:22px; ">
  1368. <caption>조회</caption>
  1369. <script type="javascript" ev:event="DOMActivate">
  1370. <![CDATA[
  1371. var vPid = model.getValue(ipt_srchpid2.attribute("ref")) ;
  1372. if( vPid != "" ) {
  1373. //해당환자의 건진history조회
  1374. ahafGetHistList2(vPid, cmb_srchhealexamdetlflag.value , "E");
  1375. cmb_srchrsrvdd.select(0);
  1376. }
  1377. ]]>
  1378. </script>
  1379. </button>
  1380. <line id="line1" style="x1:443px; y1:10px; x2:443px; y2:72px; border-color:#ffe4bb; border-left-style:solid; "/>
  1381. <select1 id="cmb_srchhealexamdetlflag2" ref="/root/init/send/srchhealexamdetlflag2" class="combo_s_essential" disabled="true" appearance="minimal" style="left:101px; top:8px; width:105px; height:19px; ">
  1382. <choices>
  1383. <itemset nodeset="/root/init/baseinfo/hedetlflaglst/item">
  1384. <label ref="cdnm"/>
  1385. <value ref="cdid"/>
  1386. </itemset>
  1387. </choices>
  1388. </select1>
  1389. <input id="ipt_srchpnm2" ref="/root/init/send/srchpnm2" class="input_default" style="left:232px; top:32px; width:115px; height:19px; ">
  1390. <script type="javascript" ev:event="onkeyup">
  1391. <![CDATA[
  1392. inputEnterKey("btn_search2","DOMActivate" );
  1393. ]]>
  1394. </script>
  1395. </input>
  1396. <input id="ipt_srchpid2" ref="/root/init/send/srchpid2" class="input_default" style="left:101px; top:32px; width:105px; height:19px; ">
  1397. <script type="javascript" ev:event="onkeyup">
  1398. <![CDATA[
  1399. if( event.keyCode == 13 ){
  1400. //건진자 정보 가져오기...
  1401. fGetPatinfoWithPid(ipt_srchpid2.currentText);
  1402. }
  1403. ]]>
  1404. </script>
  1405. </input>
  1406. <caption id="caption26" class="search_name" style="left:11px; top:32px; width:89px; height:17px; ">등록번호 :</caption>
  1407. <caption id="caption2" class="search_name" style="left:11px; top:55px; width:86px; height:17px; ">건진정보 :</caption>
  1408. <select1 id="cmb_srchrsrvdd" ref="/root/init/send/srchrsrvdd" class="combo_s_essential" appearance="minimal" style="left:101px; top:55px; width:325px; height:19px; ">
  1409. <choices>
  1410. <itemset nodeset="/root/temp/histlst/item">
  1411. <label ref="hopedd"/>
  1412. <value ref="rsrvdd"/>
  1413. </itemset>
  1414. </choices>
  1415. <script type="javascript" ev:event="xforms-select">
  1416. <![CDATA[
  1417. var idx = cmb_srchrsrvdd.mouseRow;
  1418. if( idx < 0) return ;
  1419. var sNd = cmb_srchrsrvdd.choices.itemset.attribute("nodeset") ;
  1420. var nodelist = instance1.selectNodes(sNd);
  1421. if( nodelist == null ) return ;
  1422. if(idx >= nodelist.length) idx = 0;
  1423. var sRsrvdd = nodelist.item(idx).rsrvdd.text;
  1424. var sRsrvno = nodelist.item(idx).rsrvno.text;
  1425. var sPkgnm = nodelist.item(idx).pkgnm.text;
  1426. var sPid = nodelist.item(idx).pid.text;
  1427. var sOrdDD = nodelist.item(idx).orddd.text;
  1428. var sCretno = nodelist.item(idx).cretno.text;
  1429. copyNodesetType("/root/init/send/info" , sNd + "[" + (idx + 1) + "]" , "replace");
  1430. fGetJudgDetlInfo( sRsrvdd, sRsrvno , sPkgnm, sPid, sOrdDD , sCretno );
  1431. ]]>
  1432. </script>
  1433. </select1>
  1434. <output id="opt_sex" ref="/root/init/send/srchsex" class="output_fix" style="left:350px; top:32px; width:36px; height:19px; "/>
  1435. <output id="opt_age" ref="/root/init/send/srchage" class="output_fix" style="left:389px; top:32px; width:36px; height:19px; "/>
  1436. <button id="btn_search2" class="icon_search" style="left:210px; top:32px; width:16px; height:16px; ">
  1437. <caption/>
  1438. <script type="javascript" ev:event="DOMActivate">
  1439. <![CDATA[
  1440. fSearchPatInfo("SMAHA00100", "pnm", ipt_srchpnm2.currentText , "Y", "/root/temp/patinfo/item");
  1441. model.setValue("/root/init/send/srchpid2" , model.getValue("/root/temp/patinfo/item/pid"));
  1442. model.setValue("/root/init/send/srchpnm2" , model.getValue("/root/temp/patinfo/item/hngnm"));
  1443. model.setValue("/root/init/send/srchsex" , model.getValue("/root/temp/patinfo/item/sex"));
  1444. model.setValue("/root/init/send/srchage" , model.getValue("/root/temp/patinfo/item/age"));
  1445. var vPid = model.getValue(ipt_srchpid2.attribute("ref")) ;
  1446. if( vPid != "" ) {
  1447. //해당환자의 건진history조회
  1448. ahafGetHistList2(vPid, cmb_srchhealexamdetlflag.value , "E");
  1449. }
  1450. ]]>
  1451. </script>
  1452. </button>
  1453. </group>
  1454. <line id="line2" class="line_1" style="x1:5px; y1:112px; x2:546px; y2:112px; "/>
  1455. <input id="ipt_meddd" ref="/root/main/judgdetl/medinfo/item/meddd" class="input_essential" inputtype="date" style="left:614px; top:8px; width:95px; height:19px; "/>
  1456. <line id="line23" class="line_3" style="x1:552px; y1:5px; x2:1184px; y2:5px; "/>
  1457. <select1 id="cmb_meddr" ref="/root/main/judgdetl/medinfo/item/meddrid" class="combo_essential" appearance="minimal" style="left:760px; top:8px; width:95px; height:19px; ">
  1458. <choices>
  1459. <itemset nodeset="/root/init/baseinfo/meddrlst/itemdr">
  1460. <label ref="drnm"/>
  1461. <value ref="drid"/>
  1462. </itemset>
  1463. </choices>
  1464. <script type="javascript" ev:event="xforms-value-changed">
  1465. <![CDATA[
  1466. model.property("judgdr") = cmb_judgdr.value;
  1467. ]]>
  1468. </script>
  1469. </select1>
  1470. <caption id="caption6" class="cell_1" visibility="hidden" style="left:712px; top:6px; width:45px; height:23px; vertical-align:middle; ">진찰의</caption>
  1471. <caption id="caption8" class="cell_1" style="left:552px; top:6px; width:59px; height:23px; vertical-align:middle; ">진찰일자</caption>
  1472. <switch id="switch2" style="left:552px; top:60px; width:630px; height:645px; ">
  1473. <case id="case_med" style="left:0px; top:0px; width:630px; height:4523px; ">
  1474. <datagrid id="grd_medinqrlst" nodeset="/root/main/judgdetl/judginfo/medinqr" caption="진찰명^결과값^비고^문진분류^문진코드^결과코드^문진유형^STAT^LRGRSLTYN" colsep="^" colwidth="200, 200, 190, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:0px; width:627px; height:640px; ">
  1475. <col ref="judginqrnm"/>
  1476. <col ref="judgrsltcnts" type="input"/>
  1477. <col ref="judgremcnts" type="input"/>
  1478. <col ref="judginqrflag" visibility="hidden"/>
  1479. <col ref="judginqrcd" visibility="hidden"/>
  1480. <col ref="judgrsltcd" visibility="hidden"/>
  1481. <col ref="answcdflag" visibility="hidden"/>
  1482. <col ref="stat" visibility="hidden"/>
  1483. <col ref="lrgrsltyn" visibility="hidden"/>
  1484. <script type="javascript" ev:event="xforms-value-changed">
  1485. <![CDATA[
  1486. if(isDataCell()) {
  1487. if(grd_medinqrlst.col == grd_medinqrlst.colRef("judgrsltcnts")) {
  1488. fSetChoiAnsw(grd_medinqrlst);
  1489. grd_medinqrlst.row = grd_medinqrlst.row + 1;
  1490. grd_medinqrlst.dispatch("onrowchanged");
  1491. }
  1492. }
  1493. ]]>
  1494. </script>
  1495. <script type="javascript" ev:event="onstartedit">
  1496. <![CDATA[
  1497. if(grd_medinqrlst.col == grd_medinqrlst.colRef("judgrsltcnts")) { ;
  1498. fSetAnswVisible(grd_medinqrlst);
  1499. }
  1500. ]]>
  1501. </script>
  1502. <script type="javascript" ev:event="onrowchanged">
  1503. <![CDATA[
  1504. if(grd_medinqrlst.col == grd_medinqrlst.colRef("judgrsltcnts")) { ;
  1505. fSetAnswVisible(grd_medinqrlst);
  1506. }
  1507. ]]>
  1508. </script>
  1509. <script type="javascript" ev:event="onclick">
  1510. <![CDATA[
  1511. if(isDataCell()) {
  1512. if(grd_medinqrlst.col == grd_medinqrlst.colRef("judgrsltcnts")) {
  1513. grd_medinqrlst.editCell();
  1514. }
  1515. }
  1516. ]]>
  1517. </script>
  1518. <script type="javascript" ev:event="DOMFocusOut">
  1519. <![CDATA[
  1520. // grp_answ.visible = false;
  1521. ]]>
  1522. </script>
  1523. </datagrid>
  1524. </case>
  1525. <case id="case_prnt" selected="true">
  1526. <datagrid id="grd_judginqrlst" nodeset="/root/main/judgdetl/judginfo/judginqr" caption="판정명^판정값^비고^문진분류^문진코드^결과코드^문진유형^STAT^LRGRSLTYN" colsep="^" colwidth="200, 200, 190, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:0px; width:627px; height:640px; ">
  1527. <col ref="judginqrnm"/>
  1528. <col ref="judgrsltcnts" type="input"/>
  1529. <col ref="judgremcnts" type="input"/>
  1530. <col ref="judginqrflag" visibility="hidden"/>
  1531. <col ref="judginqrcd" visibility="hidden"/>
  1532. <col ref="judgrsltcd" visibility="hidden"/>
  1533. <col ref="answcdflag" visibility="hidden"/>
  1534. <col ref="stat" visibility="hidden"/>
  1535. <col ref="lrgrsltyn" visibility="hidden"/>
  1536. <script type="javascript" ev:event="xforms-value-changed">
  1537. <![CDATA[
  1538. if(isDataCell()) {
  1539. if(grd_judginqrlst.col == grd_judginqrlst.colRef("judgrsltcnts")) {
  1540. fSetChoiAnsw(grd_judginqrlst);
  1541. grd_judginqrlst.row = grd_judginqrlst.row + 1;
  1542. grd_judginqrlst.dispatch("onrowchanged");
  1543. }
  1544. }
  1545. ]]>
  1546. </script>
  1547. <script type="javascript" ev:event="onstartedit">
  1548. <![CDATA[
  1549. if(grd_judginqrlst.col == grd_judginqrlst.colRef("judgrsltcnts")) { ;
  1550. fSetAnswVisible(grd_judginqrlst);
  1551. }
  1552. ]]>
  1553. </script>
  1554. <script type="javascript" ev:event="onrowchanged">
  1555. <![CDATA[
  1556. if(grd_judginqrlst.col == grd_judginqrlst.colRef("judgrsltcnts")) { ;
  1557. fSetAnswVisible(grd_judginqrlst);
  1558. }
  1559. ]]>
  1560. </script>
  1561. <script type="javascript" ev:event="onclick">
  1562. <![CDATA[
  1563. if(isDataCell()) {
  1564. if(grd_judginqrlst.col == grd_judginqrlst.colRef("judgrsltcnts")) {
  1565. grd_judginqrlst.editCell();
  1566. }
  1567. }
  1568. ]]>
  1569. </script>
  1570. <script type="javascript" ev:event="DOMFocusOut">
  1571. <![CDATA[
  1572. // grp_answ.visible = false;
  1573. ]]>
  1574. </script>
  1575. </datagrid>
  1576. </case>
  1577. <case id="case_inqr">
  1578. <datagrid id="grd_apntinqrlst" nodeset="/root/main/judgdetl/judginfo/apntinqr" caption="문진명^문진값^비고^문진분류^문진코드^결과코드^문진유형^STAT^LRGRSLTYN" colsep="^" colwidth="200, 200, 190, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:0px; width:627px; height:640px; ">
  1579. <col ref="judginqrnm"/>
  1580. <col ref="judgrsltcnts" type="input"/>
  1581. <col ref="judgremcnts" type="input"/>
  1582. <col ref="judginqrflag" visibility="hidden"/>
  1583. <col ref="judginqrcd" visibility="hidden"/>
  1584. <col ref="judgrsltcd" visibility="hidden"/>
  1585. <col ref="answcdflag" visibility="hidden"/>
  1586. <col ref="stat" visibility="hidden"/>
  1587. <col ref="lrgrsltyn" visibility="hidden"/>
  1588. <script type="javascript" ev:event="xforms-value-changed">
  1589. <![CDATA[
  1590. if(isDataCell()) {
  1591. if(grd_apntinqrlst.col == grd_apntinqrlst.colRef("judgrsltcnts")) {
  1592. fSetChoiAnsw(grd_apntinqrlst);
  1593. grd_apntinqrlst.row = grd_apntinqrlst.row + 1;
  1594. grd_apntinqrlst.dispatch("onrowchanged");
  1595. }
  1596. }
  1597. ]]>
  1598. </script>
  1599. <script type="javascript" ev:event="onstartedit">
  1600. <![CDATA[
  1601. if(grd_apntinqrlst.col == grd_apntinqrlst.colRef("judgrsltcnts")) { ;
  1602. fSetAnswVisible(grd_apntinqrlst);
  1603. }
  1604. ]]>
  1605. </script>
  1606. <script type="javascript" ev:event="onrowchanged">
  1607. <![CDATA[
  1608. if(grd_apntinqrlst.col == grd_apntinqrlst.colRef("judgrsltcnts")) { ;
  1609. fSetAnswVisible(grd_apntinqrlst);
  1610. }
  1611. ]]>
  1612. </script>
  1613. <script type="javascript" ev:event="onclick">
  1614. <![CDATA[
  1615. if(isDataCell()) {
  1616. if(grd_apntinqrlst.col == grd_apntinqrlst.colRef("judgrsltcnts")) {
  1617. grd_apntinqrlst.editCell();
  1618. }
  1619. }
  1620. ]]>
  1621. </script>
  1622. <script type="javascript" ev:event="DOMFocusOut">
  1623. <![CDATA[
  1624. // grp_answ.visible = false;
  1625. ]]>
  1626. </script>
  1627. </datagrid>
  1628. </case>
  1629. </switch>
  1630. <line id="line3" class="line_3" style="x1:552px; y1:29px; x2:1184px; y2:29px; "/>
  1631. <input id="ipt_judgdd" ref="/root/main/judgdetl/judginfo/judg/judgdd" class="input_essential" disabled="true" visibility="hidden" inputtype="date" style="left:939px; top:8px; width:95px; height:19px; "/>
  1632. <select1 id="cmb_judgdr" ref="/root/main/judgdetl/judginfo/judg/judgdrid" class="combo_essential" visibility="hidden" appearance="minimal" style="left:1085px; top:8px; width:95px; height:19px; ">
  1633. <choices>
  1634. <itemset nodeset="/root/init/baseinfo/judgdrlst/itemdr">
  1635. <label ref="drnm"/>
  1636. <value ref="drid"/>
  1637. </itemset>
  1638. </choices>
  1639. <script type="javascript" ev:event="xforms-value-changed">
  1640. <![CDATA[
  1641. model.property("judgdr") = cmb_judgdr.value;
  1642. ]]>
  1643. </script>
  1644. </select1>
  1645. <caption id="caption7" class="cell_1" visibility="hidden" style="left:1037px; top:6px; width:45px; height:23px; vertical-align:middle; ">판정의</caption>
  1646. <caption id="caption10" class="cell_1" visibility="hidden" style="left:877px; top:6px; width:59px; height:23px; vertical-align:middle; ">판정일자</caption>
  1647. <button id="btn_med" class="btn_sw" group="tab_2" selected="true" style="left:552px; top:39px; width:80px; height:22px; ">
  1648. <caption>진찰</caption>
  1649. <script type="javascript" ev:event="onclick">
  1650. <![CDATA[
  1651. model.setValue("/root/send/inqrflag","F");
  1652. model.toggle("case_med");
  1653. ]]>
  1654. </script>
  1655. </button>
  1656. <button id="btn_prnt" class="btn_sw" disabled="false" visibility="visible" group="tab_2" selected="true" style="left:632px; top:39px; width:80px; height:22px; ">
  1657. <caption>문진</caption>
  1658. <script type="javascript" ev:event="onclick">
  1659. <![CDATA[
  1660. model.setValue("/root/send/inqrflag","E");
  1661. model.toggle("case_inqr");
  1662. ]]>
  1663. </script>
  1664. </button>
  1665. <group id="grp_answ" visibility="hidden" style="left:275px; top:185px; width:260px; height:195px; ">
  1666. <datagrid id="grd_answlst" nodeset="/root/hidden/answlst/item" visibility="visible" caption="코드^답안내용^검사코드^문진구분" colsep="^" colwidth="30, 198, 46, 46" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:5px; width:250px; height:185px; ">
  1667. <col ref="answcd"/>
  1668. <col ref="answcnts"/>
  1669. <col ref="judginqrcd" visibility="hidden"/>
  1670. <col ref="inqrflag" visibility="hidden"/>
  1671. </datagrid>
  1672. </group>
  1673. <button id="button4" class="btn_sw" disabled="true" visibility="hidden" group="tab_2" selected="true" style="left:712px; top:39px; width:80px; height:22px; ">
  1674. <caption>판정</caption>
  1675. <script type="javascript" ev:event="onclick">
  1676. <![CDATA[
  1677. model.setValue("/root/send/inqrflag","G");
  1678. model.toggle("case_prnt");
  1679. ]]>
  1680. </script>
  1681. </button>
  1682. </case>
  1683. </switch>
  1684. <button id="btn_patlst" class="btn_sw" group="tab_1" selected="true" style="left:3px; top:5px; width:105px; height:22px; ">
  1685. <caption>진찰대기자</caption>
  1686. <toggle case="case_pat" ev:event="onclick"/>
  1687. </button>
  1688. <button id="btn_judg" class="btn_sw" group="tab_1" style="left:109px; top:5px; width:105px; height:22px; ">
  1689. <caption>진찰</caption>
  1690. <toggle case="case_judg" ev:event="onclick"/>
  1691. </button>
  1692. </group>
  1693. <group id="grp_btn" style="left:0px; top:754px; width:1195px; height:27px; ">
  1694. <button id="btn_clear" class="btn4_letter3" style="left:1122px; top:5px; width:68px; height:22px; ">
  1695. <caption>초기화</caption>
  1696. <script type="javascript" ev:event="DOMActivate">
  1697. <![CDATA[
  1698. if(case_pat.selected == true) {
  1699. fInit(false );
  1700. }else {
  1701. fInit(true);
  1702. }
  1703. ]]>
  1704. </script>
  1705. </button>
  1706. <button id="btn_print" class="btn6_letter4" style="left:7px; top:5px; width:80px; height:22px; ">
  1707. <caption>서식출력</caption>
  1708. <script type="javascript" ev:event="DOMActivate">
  1709. <![CDATA[
  1710. if(case_judg.selected == true) {
  1711. fJudgInqrPrint();
  1712. }
  1713. ]]>
  1714. </script>
  1715. </button>
  1716. <button id="button1" class="btn3_letter4" style="left:88px; top:5px; width:116px; height:22px; ">
  1717. <caption>발송대기</caption>
  1718. <script type="javascript" ev:event="DOMActivate">
  1719. <![CDATA[
  1720. if(case_judg.selected == true) {
  1721. clearParameter("SMAHA04510_PARAM1");
  1722. clearParameter("SMAHA04510_PARAM2");
  1723. clearParameter("SMAHA04510_PARAM3");
  1724. clearParameter("SMAHA04510_PARAM4");
  1725. setParameter ("SMAHA04510_PARAM1", model.getValue("/root/init/send/info/healexamdetlflag") ); // 건진상세구분
  1726. setParameter ("SMAHA04510_PARAM2", model.getValue("/root/init/send/info/hopedd")); // 건진일자
  1727. setParameter ("SMAHA04510_PARAM3", model.getValue("/root/init/send/info/pid")); // 등록번호
  1728. setParameter ("SMAHA04510_PARAM4", model.getValue("/root/init/send/info/brthareacnts")); // 국가코드
  1729. modal("SMAHA04510");
  1730. }
  1731. ]]>
  1732. </script>
  1733. </button>
  1734. <button id="button2" class="btn3_letter6" style="left:170px; top:5px; width:80px; height:22px; ">
  1735. <caption>재/미검자관리</caption>
  1736. <script type="javascript" ev:event="DOMActivate">
  1737. <![CDATA[
  1738. modal("SMAHA04610");
  1739. ]]>
  1740. </script>
  1741. </button>
  1742. <button id="btn_save" class="btn4_letter2" style="left:1065px; top:5px; width:56px; height:22px; ">
  1743. <caption>저장</caption>
  1744. <script type="javascript" ev:event="DOMActivate">
  1745. <![CDATA[
  1746. var inqrflag = model.getValue("/root/send/inqrflag");
  1747. var sRsrvdd = model.getValue("/root/init/send/info/rsrvdd");
  1748. var sRsrvno = model.getValue("/root/init/send/info/rsrvno");
  1749. var sPkgnm = model.getValue("/root/init/send/info/pkgnm");
  1750. var sPid = model.getValue("/root/init/send/info/pid");
  1751. var sOrdDD = model.getValue("/root/init/send/info/orddd");
  1752. var sCretno = model.getValue("/root/init/send/info/cretno");
  1753. if (inqrflag == "F") {
  1754. var meddrid = model.getValue("/root/main/judgdetl/medinfo/item/meddrid");
  1755. if(meddrid == "") { // 진찰의 체크
  1756. messageBox("진찰의를 ", "C001");
  1757. return ;
  1758. }
  1759. if(messageBox("진찰 정보를" , "Q002") == 6 ) {
  1760. model.makeValue("/root/init/send/info/meddd" , model.getValue("/root/main/judgdetl/medinfo/item/meddd"));
  1761. model.makeValue("/root/init/send/info/medtm" , model.getValue("/root/main/judgdetl/medinfo/item/medtm"));
  1762. model.makeValue("/root/init/send/info/meddrid", model.getValue("/root/main/judgdetl/medinfo/item/meddrid"));
  1763. model.makeValue("/root/init/send/info/medseq", model.getValue("/root/main/judgdetl/medinfo/item/medseq"));
  1764. model.makeValue("/root/init/send/info/remedyn", model.getValue("/root/main/judgdetl/medinfo/item/remedyn"));
  1765. model.makeValue("/root/init/send/info/inqrflag", inqrflag);
  1766. model.makeValue("/root/init/send/info/execflag", model.getValue("/root/main/judgdetl/medinfo/item/execflag"));
  1767. copyNodesetType("/root/send/savedata","/root/init/send/info","replace");
  1768. model.makeValue("/root/send/savedata/savepast" , grd_medinqrlst.getUpdateData() );
  1769. if (submit("TXAHA04421")) {
  1770. fGetJudgDetlInfo( sRsrvdd, sRsrvno , sPkgnm, sPid, sOrdDD , sCretno );
  1771. }
  1772. }
  1773. } else if (inqrflag == "G") {
  1774. //판정내역
  1775. var rsrvdd = model.getValue("/root/init/send/srchrsrvdd");
  1776. if( rsrvdd == "") {
  1777. messageBox("판정대상내역을 ", "C002");
  1778. model.setFocus("cmb_srchrsrvdd");
  1779. return ;
  1780. }
  1781. var judgdrid = model.getValue("/root/main/judgdetl/judginfo/judg/judgdrid");
  1782. if(judgdrid == "" || judgdrid == "-") {
  1783. messageBox("판정의사를","C002");
  1784. return;
  1785. }
  1786. // var judgflag = model.getValue("/root/main/judgdetl/judginfo/judg/judg1/judgflag");
  1787. // if(judgflag == "") {
  1788. // messageBox("판정구분을","C002");
  1789. // return;
  1790. // }
  1791. copyNodesetType("/root/send/savedata", "/root/init/send/info", "replace");
  1792. model.makeValue("/root/send/savedata/judgdd" , model.getValue("/root/main/judgdetl/judginfo/judg/judgdd"));
  1793. model.makeValue("/root/send/savedata/judgdrid" , model.getValue("/root/main/judgdetl/judginfo/judg/judgdrid"));
  1794. model.makeValue("/root/send/savedata/judgflag" , "A");
  1795. model.makeValue("/root/send/savedata/judgcnts", "");
  1796. // model.makeValue("/root/send/savedata/judgflag" , judgflag);
  1797. // if(judgflag == "A") {
  1798. // model.makeValue("/root/send/savedata/judgcnts" , model.getValue("/root/main/judgdetl/judginfo/judg/judg1/judgcntsa"));
  1799. // }else if(judgflag == "B") {
  1800. // if(model.getValue("/root/main/judgdetl/judginfo/judg/judg1/judgcntsb") == "") {
  1801. // messageBox("판정 내용을 입력하세요." , "");
  1802. // return;
  1803. // }
  1804. // model.makeValue("/root/send/savedata/judgcnts" , model.getValue("/root/main/judgdetl/judginfo/judg/judg1/judgcntsb"));
  1805. // }
  1806. model.makeValue("/root/send/savedata/judgstat" , "1")
  1807. if(submit("TXAHA04412")) {
  1808. copyNodesetType("/root/send/savedata","/root/init/send/info", "replace");
  1809. model.makeValue("/root/send/savedata/judginqr" , grd_judginqrlst.getUpdateData());
  1810. if(submit("TXAHA04411")) {
  1811. fGetJudgDetlInfo( sRsrvdd, sRsrvno , sPkgnm, sPid, sOrdDD , sCretno );
  1812. }
  1813. }
  1814. } else if (inqrflag == "E") {
  1815. //판정내역
  1816. var rsrvdd = model.getValue("/root/init/send/srchrsrvdd");
  1817. if( rsrvdd == "") {
  1818. messageBox("문진대상내역을 ", "C002");
  1819. model.setFocus("cmb_srchrsrvdd");
  1820. return ;
  1821. }
  1822. if( messageBox("문진내역을 ", "Q002") !=6) return ;
  1823. copyNodesetType("/root/send/savedata","/root/init/send/info", "replace");
  1824. model.makeValue("/root/send/savedata/judginqr" , grd_apntinqrlst.getUpdateData());
  1825. if(submit("TXAHA04411")) {
  1826. fGetJudgDetlInfo( sRsrvdd, sRsrvno , sPkgnm, sPid, sOrdDD , sCretno );
  1827. }
  1828. }
  1829. // if(submit("TXAHA04311")) {
  1830. //
  1831. // fGetMedPatList();
  1832. // // 진찰 정보 수정
  1833. // fSetMedInfo();
  1834. //
  1835. // };
  1836. ]]>
  1837. </script>
  1838. </button>
  1839. </group>
  1840. </xhtml:body>
  1841. </xhtml:html>